Forums

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

Search based on jira summary

Vijay Reddy
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!
July 11, 2019

Before creating an issue I need to see if there's an issue with similar summary(name) and active and only create if there's none and append it to the existing issue if there's one already.

 

1.I want to send summary as a variable

p_summary="XYZ.dtsx

jira.search_issues('project=DI and summary~p_summary and status="To Do"', maxResults=5)

Ticket_id=issue.key
print(Ticket_id)

 

2.when there's no matching issue it doesn't result anything for the below.How do I handle it.

Ticket_id=issue.key
print(Ticket_id)

 

1 answer

0 votes
Thomas Schlegel
Community Champion
July 11, 2019

Hi @Vijay Reddy ,

the JQL would be 

project = DI and summary ~ "TESTEU Sales"

Vijay Reddy
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!
July 11, 2019

Thanks @Thomas Schlegel  but I wanna pass it as variable .Is there a way?

Thomas Schlegel
Community Champion
July 11, 2019

OK, you didn't mention that in your first post before editing it. I'm not experienced in using the Jira programming interface, I'm sorry.  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events