Forums

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

How can I loop through the created issue list from the python API?

Wilfred Ng
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!
August 21, 2023

I'm trying to loop through the newly created list of issues to print out the keys of the issues created. 

 

self.issues = self.jira.create_issues(field_list=self.issue_list)
for index, item in enumerate(self.issues):
           issue_id = item['key']
            print(f"Id: {issue_id}")

1 answer

1 accepted

1 vote
Answer accepted
Wilfred Ng
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!
August 21, 2023

This is the answer : 

issue_id = item['input_fields']['project']['key']

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events