Our users would like to use a post function to create an issue in a specific project with the condition that an issue with the same summary does not already exist in the target project.
Hi,
in the conditional execution script, you can use a JQL query to check whether an issue already exists with the same summary:
!jqlSearch("project=PROJ and summary ~ \"${issue.summary}\"",1)
Hi @Vasily Prokhorov ,
Pls refer the following post, hope it helps.
How to check if an issue with a certain summary already exists
Thanks David!
Would you know how I can write a condition such as:
!!issue.get("SD_Project Name")AND!jqlSearch("project=(value of the above field if present) and summary ~ \"${issue.summary}\"",1)
Thank you for your help ahead of time !
Sure:
issue.getAsString("SD_Project Name") && !jqlSearch("project=\"${issue.getAsString("SD_Project Name")}\" and summary ~ \"${issue.summary}\"",1)
Perfect!
Thank you David.
It looks like you're new here. Sign in or register to get started.