Validator for linked issue of a linked issue is a given Link Type

Alex Bennett
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!
April 25, 2024

Hi,

I have a chain of project that cascade one after the other, and I am looking to validate, using a ScriptRunner Script validator, the closure of the top/first issue, based on whether the third link in the linked issues chain is of link type and status.

I have the following for checking if the linked issue to the current issue is of a status and link type, but not sure how I'd get this to look in the context of the linked issue rather than the current issue, or if it is even possible.

(issue.links.filter(link => (link.linkedIssue.issueType.name != "Issue type"
&& link.linkedIssue.project.name != "Project Name" && link.linkedIssue.status.name != "Status" && (link.type.name != "Link Type")
&& link.direction != "inward")).length == 0) : false 
Any ideas would be greatly appreciated.
Thanks
Alex

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events