Forums

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

Just list recently created

Amman MS August 15, 2019

i have following in python 

  • create_ticket()
  • list_tickets() (JQL: Project + summary + Status + Labels) 

list_tickets() is gives me complete list of tickets with same JQL. 

Question: How can i just print the ticket that was created with create_ticket() function. 

 

Any suggestion or ideas ? 

1 answer

0 votes
David Laperle
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2019

Not sure what you're trying to achieve, but the create_ticket method could return the JIRA key created and use that after to do a JQL to retrieve only that issue. 

Not sure if JIRA returns the Key of the newly created issue when using the API, but i would assume so. 

After it's only a matter of doing JQL : key = <received key> and it would return you the full issue.

Note that JIRA might also return the full Issue object, if the case, then you don't even need the JQL after, simply use that object received.

If you're looking a listing all tickets that were creating by your create_ticket() method, then i'd recommend using a label or component.

when you create your ticket using create_ticket(), you simply set a label to something like "create_by_script" and then you do a JQL like : label = create_by_script

Hope this helps.

Amman MS August 16, 2019

Thanks David

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events