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
TAGS
atlassian, team ’25 europe, early bird extension, conference discount, barcelona, hybrid event, AI teamwork, early bird pass, digital access, collaboration conference, atlassian events, register now, developer conference

1 week left to save on your Team '25 Europe pass

Still thinking about joining us for Team '25 Europe? Early bird has been extended for just one week! Now’s the time to lock in your lowest rate. Use code TEU25COMM-20 to save 20% at checkout. Hurry, this only lasts for 1 more week.

Learn more
AUG Leaders

Atlassian Community Events