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.
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.
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.
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
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.
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot