What would be the script for hiding the current transition, if the transition of the Linked issue does not match some of the states?
For e.g.
I want to make "Submit for Approval" Hidden until the Linked Ticket Does not reaches to "Resolved"
* I have the Script Runner Plugin.
Hi,
you can use Script Runner simple scripted condition and this script
IssueLinkManager issueLinkManager = ComponentAccessor.issueLinkManager def found = issueLinkManager.getOutwardLinks(issue.id).any {it?.destinationObject?.statusObject?.name != 'Resolved'} || issueLinkManager.getInwardLinks(issue.id).any{it?.sourceObject?.statusObject?.name != 'Resolved'} return !found
if you want to ignore the link type.
Henning
This is not tested by me... :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it works in one jira system. now i built an application link between 2 jira systems,and the issue link is cross-jirasystem too.how can i edit the script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can use Script Runner built-in condition "Allows the transition if this query matches a JQL query" and the query "issueFunction in linkedIssuesOf(
"status = Resolved"
,
"blocks"
)
" to check for linked issues with link type "blocks" and status Resolved.
Henning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't get a notification for this. I don't know, is there something like mentioning in Answers?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
He forgots the '@' in your name, maybe because of that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But it works :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mmmh. It's not visible while typing that @Henning Tietgens is a mention... Not like in Confluence.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Ramiro, the case is slight different. They both are different issues but Linked together.
In that case,If Issue "XYZ-2" is coming to Resolve than only the "Submit for Approval" of issue "YZX-4" should be visible else it will remain hidden in every case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vineet, in fact you can make the Submit transition only available from the Resolved status using the workflow.
Check that the Submit it's only a transition for the Resolved step and that will do. Or, you can check with a validation if the field Resolution is not null to do the transition.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Ramiro, the case is slight different. They both are different issues but Linked together.
In that case,If Issue "XYZ-2" is coming to Resolve than only the "Submit for Approval" of issue "YZX-4" should be visible else it will remain hidden in every case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In that case you could use the Script Runner plugin with the Built-In script called Allows the transition if this query matches a JQL query.
With this you can do a JQL query that searchs for a linked issue that has a resolved status.
If the query finds one row then it will allow the transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for this you have to develop condition or use the Use the subtask blocking condition in JIRA workflow., i am not sure if it is there on script runner plugin
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.