Forums

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

I need to check the linked issue type and link type if its correct then transition needs to allow

thumuluru_shreya
Contributor
June 6, 2025

I need to check the linked issue type and link type if its correct then transition needs to allow in ticket.

Ex: I have bug issue for this bug issue the instance issue with link type causes should be linked then only the transition needs to allow from closure to closed. If the ticket is not linked or its not linked correctly with correct issue and correct link type its should not allow the transition to close the ticket from closure state to closed.

 

Can any one help in this using Jira cloud platform

4 answers

1 vote
Nicolas Werle _Decadis AG_
Atlassian Partner
June 16, 2025

Hi, 

I am Nicolas and I'm part of Decadis team.

If it is an option for you to use another app, this is something that can be achieved easily with our app Jira Workflow Toolbox Cloud.

For this purpose, please use the Jira expression validator and use the following expression: 

issue.links.filter(link => link.type.inward == "is caused by" && link.linkedIssue.issueType.name == "Bug").length >= 1

 

This checks whether there is at least one linked ticket of the type Bug with the link type “is caused by”.

If you have any questions or if the requirement needed is different, please feel free to create a ticket in our Support portal and we will be happy to help you.

Best regards,

Nicolas

 

0 votes
Cristiano Alves -Appfire- June 13, 2025

Hello @thumuluru_shreya ,

 

Cristiano from the Appfire Team here.

If you're open to exploring new solutions, our app, Jira Misc Workflow Extension (JMWE) will help you setting this up with an easy interface.

Like the following image would show you. Setting up conditions for both the Issue Link Type and the type of the Linked issue.

You may setup this condition validator on any workflow as well as add error messages.

 

JMWE Condition.png

If you have any doubt on how to set this up, feel free to contact our support team.

 

Regards,

 

0 votes
Maciej Dudziak _Forgappify_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2025

Hi @thumuluru_shreya 

If you are open to using apps and looking for a ready-to-use solution. We've developed the Linked Issues Validator available as part of the Workflow Building Blocks for Jira app. With its wizard-style UI, you can easily configure which link types to validate and enforce that at least one such link must exist—this should cover your use case.

I hope it would help.

0 votes
Aaron Williams
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2025

Hey @thumuluru_shreya 

Correct me if I am wrong but you are asking:

Is there a way when a issue is transitioned, that there is a check for a linked issue of a certain issuetype and linotype?

If it's correct you allow it to proceed, if not it's blocked from transitioning? 

Thanks

Aaron. 

thumuluru_shreya
Contributor
June 6, 2025

@Aaron Williams , Correct

Is there a way when aa issue is transitioned, that there is a check for a linked issue of a certain issue type and link type? Could you please help in this

Aaron Williams
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2025

Hey @thumuluru_shreya 

I have something working, but I need a more information to make sure I've got it right. 

Trigger: when issue transitioned to closed 

Issue fields condition:

issuetype= bug

AND

Linked issue are present - link type: "causes" - condition: all match specified JQL: issuetype != "your desired issuetype"

THEN

Transition issue back "to your desired status"

Comment: "issue not allowed to transition because the incorrect issuetype linked"

 

There may be a few more variations of this you need to add as an if/else where the link type is incorrect but the issuetype is fine. 

Thanks

Aaron 

thumuluru_shreya
Contributor
June 7, 2025

Hi @Aaron Williams ,

My requirement is I need to check for the instance issue type whenever its changing transition to "Open", "Closed" and "Manufacturing" it needs to check the linked issue type is "bug" and its link is "is caused" if the issuetype and link is valid then only it needs to allow the transition to move if not it needs to throw an error like please link correctly or something it means it should block until he correctly link For this error message or pop up is fine.

 

Thanks,

Shreya

Aaron Williams
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2025

And what if there are no linked issues? 

You won't get the instant feedback that you won't either way, there will always be a delay whilst the automation does it's thing. 

The only real option for immediate feedback would be a 3rd part app, like Scriptrunner couple with a workflow rule. 

Thanks

Aaron 

thumuluru_shreya
Contributor
June 7, 2025

Hi @Aaron Williams , If its not linked it should not allow.

If you know any workflow validation rule please let me know. I have knowledge on validation like there is one linked issue validation is there but there its asking Jira expression I am not aware on that. Could you please help in this it will be helpful to me as well.

Aaron Williams
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2025

You will need to use Scriptrunner for this, as it allows you to build complex scripts that act as workflow blockers

Do you have access to scriptrunner? 

thumuluru_shreya
Contributor
June 7, 2025

Hi @Aaron Williams , I have access. Could you please send either workflow validation or script. So that I will check it will be helpful.

 

Thanks,

Shreya

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events