Write Workflow transition condition based on the status of a linked ticket

Here's what is going on:
I have Projects A & B
I have Issues A-1 & B-1
Issue A-1 "Contains" (link) issue B-1

I want to put a condition on my "Begin Work" Transition on B-1 so that it is only available when A-1 is in the status "Approved for Work".

The important points of the condition are:
The Link type has to be "Contains"(Parent)/"Contained by"(Child).
The parent issue has to be in Project A (being linked to an issue in Project B, C, or D doesn't fulfill the condition).
The status of the Parent has to be "Approved for Work". If the Parent issue is in another status then the condition isn't fulfilled.

 

For the sake of simplicity, I figured it would be best to make these into individual conditions all layered together but maybe I am over-complicating this.

I downloaded Script Runner, but I can't seem to find the fieldnames for linked issues or the status of a linked issue.

6 answers

1 accepted

This widget could not be displayed.

Hi Brandon,

I have posted at JIRA Workflow Toolbox Help Forum the way to implement your use case using JIRA Workflow Toolbox.

Best Regards,

Fidel Castro Armario

This widget could not be displayed.
Steven Behnke Community Champion Sep 11, 2015

Linked issues and statuses of linked issues aren't fields. Is there a reason you're targeting Script Runner for this? I believe you can use that add-on but Misc Workflow Extensions has a Condition for Linked issues, where you can configure all this.

This widget could not be displayed.

I picked ScriptRunner for 2 reasons: 1) In other related/similar posts ScriptRunner was pointed out for the job & seemed to be able to do what I needed. 2) Simple economics. Script Runner is free. However, reason 1 is the real reason. Everything I've read on here leads me to believe that I should be able to do this with ScriptRunner.

This widget could not be displayed.

Unfortunately, JMWE does not provide such a Condition (at least not at this time). And by the way, Script Runner is no longer free (and actually very expensive).

This widget could not be displayed.
Steven Behnke Community Champion Sep 14, 2015

Woops, sorry David, I got mixed up. Thanks for the note and the tip about Script Runner. The add-on I meant (now that I look more closely) is Workflow Toolbox. https://marketplace.atlassian.com/plugins/com.fca.jira.plugins.workflowToolbox.workflow-toolbox

This widget could not be displayed.

Thank you for your help @David [Innovalog] & @Steve Behnke [DiscoverEquip.com]. I will check out Workflow Toolbox. It looks like it has a free trial so no harm in the attempt. PS. When I look up script runner in the Find new add-ons section of JIRA it still says it is Free.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Friday in Jira

New 5k User Limit and Other Cloud Updates

Hi all! Lauren here from the Enterprise Cloud marketing team.  I have some exciting Cloud updates from #AtlassianSummit that I wanted to share. We want everyone in your organization to be ab...

111 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you