i have following in python
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 ?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.