Forums

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

Jira expression to validate linked issue status

anusha_s26 February 13, 2020

Hi,

I am working on JIRA cloud. My requirement is that, whenever a transition is attempted for example from Development to Testing, a validation has to be performed.

The validation that is required is checking if all linked issue of a given type has moved from Development to Testing.

If all linked issues are moved to Testing only then the issue's transition  can be allowed.

I found simple examples about jira expressions. But am not able to implement this requirement.

The link I checked is : https://developer.atlassian.com/cloud/jira/platform/jira-expressions/

Your help is very much appreciated here.

 

Thanks & Regards,

Anusha S S

1 answer

1 vote
vimeso
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!
June 23, 2020

Hi Anusha

 

For me the following Jira Expression worked:

issue.links.filter(L=> (L.linkedIssue.project.name == "Testing")&&(L.linkedIssue.issueType.name== "IssueType")).length ==issue.links.filter(L=> L.linkedIssue.issueType.name== "IssueType").length

Regards,

Michael 

Teodor Hoza
Contributor
February 18, 2022

Thanks! very good expression!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events