The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Script Runner Validator to check the if the linked with a specific Issue Type & Link Type.

Ganesh Kumar Vary
Contributor
May 9, 2023

Hi,

I am searching for a Script runner Validator in Jira Cloud where the validator should be true only when the issue is linked using a Specific Link Type "Address Requirement" & with inward link which is called "Addresses". And the Linked issues should be either Epic or Story but not any other issue type.

Currently I am using a simple Groovy Script in the Script Runner Validator:

issue.links != null ? issue.links.some(link => link.type.name == "Address requirement") : true

But, using this script I can only check if the link Type is Address requirement. But can't check the issue type or Inward linking.

Can anyone help he in this regards please.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
January 16, 2024

Hi @Ganesh Kumar Vary

Were you able to find a solution for this?

Thank you and Kind regards,
Ram

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events