firebus / splunk-jira

A Splunk Add-on for JIRA
http://apps.splunk.com/app/1438/
Other
25 stars 15 forks source link

jql query option is not working with splunk #23

Closed nimikuma closed 9 years ago

nimikuma commented 10 years ago

I checked the script and found the url being formed is https://jira.lufthansa.com/rest/api/2/search?jql=comment%20~%20%22Nimish%20Kumar%22%20AND%20resolved%20%3E%3D%20-12w which is working fine but the jqlquey search in splunk is not working.

jql the url formed is working

url-1 Could you please tell why the search from splunk is not giving ny result

firebus commented 10 years ago

It seems like this shouldn't make a difference if the URL generated by the command is working, but would you mind trying to enclose the JQL query in quotes? Sorry in advance if this isn't it:

| jirarest jqlquery "comment ~ 'Nimish Kumar' AND resolved >= -12w"

I'll try a similar search on my end without quotes and see what I find...

firebus commented 10 years ago

Ah, it should be 'jqlsearch' not 'jqlquery' (I often make this mistake as well)

| jirarest jqlsearch "comment ~ 'Nimish Kumar' AND resolved >= -12w"

nimikuma commented 9 years ago

Hello , ,many thanks, now it is working.