Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

search_issues returns incorrect data

Stanley Nguyen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 24, 2018
Hi,

I'm running into an inconsistent issue with search_issues. Upon every other call, search_issues would return incorrect issues (issues either had been closed or do no match with the query). If I perform the same "jira_query" string from UI, it works fine. Any idea?

jira_query = "project={} AND summary~{} AND status!=Closed and reporter='{}'".format(jira_project, target_name, jira_user)
query_issues = jira_handler.search_issues(jira_query)

Thanks,

Stanley

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 25, 2018

Hi Stanley,

I'd like to get some more details -

  1. What version of Jira are you on? Knowing the version helps us track down any version-specific bugs that might have existed on the search API.
  2. Are you on Jira Data Center? It might be possible that you're hitting different nodes on your search that are out of sync with each other due to misconfiguration.
  3. Can you verify what language/library you're using to make your API call with?

Thanks,
Daniel

Stanley Nguyen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 26, 2018

Hi Daniel,

 

Sorry for getting back late.  I figured out the issue.  Our JIRA admin was doing some index rebuilding and it messed up my queries.  Now that the maintenance  is completed, all look good now.

 

Thanks,

 

Stan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events