Forums

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

How to pass variable in the search_issues function of jira object within python

Tushar Mishra June 27, 2018

Working code in python script which is working correctly

for i in jira.search_issues('filter=46940', startAt=0, maxResults=1000):

 

But changed code is,

reportId = "46940"

for i in jira.search_issues('filter=reportId', startAt=0, maxResults=1000):

 

Error I get: " response text = {"errorMessages":["The value 'reportId' does not exist for the field 'filter'."],"errors":{}}"

Reason to make this change - I plan to use same code for multiple projects and query. Therefore, I am working on making this query generic and avoid any hard coding.

Can anybody help please?

 

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 2, 2018

Hello,

 

That specific error indicates that your REST call has not created a session yet.  This is covered in more detail int the KB article:

Please check this out and I hope this helps,

Earl

rithwik_poleneni March 6, 2020

I am facing same issue. Did you find the solution ?

Suggest an answer

Log in or Sign up to answer