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
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
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.
If you have any doubt on how to set this up, feel free to contact our support team.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.