I am trying to have any work item link that is linked to my QA, Dev, and Requirements subtasks automatically linked to the parent task.
This isnt working, I believe because of my IF condition, its only copying links for work items that match the type "QA" "Dev" or "Requirements" and not linking "Bugs" and "Stories" for example.
If I remove the IF condition it doesn't link anything tho.
What I am doing wrong?
Example of what I would like :
Parent: JIRA-12 (STORY)
MISC ITEM: JIRA-15 (BUG)
create a link from JIRA-13 to JIRA-15 -> Automatically copy that link from JIRA-12 to JIRA-15
For automation rule questions, please also include the audit log details showing the rule execution (with all areas at the right side expanded). That will help compare which steps ran and upon which work items.
Until we see that...
Please note many work item links types are directional. For example, "blocks" and "is blocked by". And, the Work Item Linked trigger runs from the "source" to the "destination" of the links, regardless of on which work item we add the link. @Trudy Claspill provides a great explanation of that here.
And so solving what you describe may be as simple as linking specifically to the {{destinationIssue.key}} or it may involve adding conditional logic to ensure the correct work item types and link types happen as you want.
Kind regards,
Bill
sure thing, there just wasn't anything really special in this particular audit log
i did see the explanation of the directionality of the links in the rule trigger description, i was hoping to have the links copy regardless of directionality and that there was a simple rule template someone had out there that would just copy any links children had to parents.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First, I recommend not changing the rule when trying to understand its behavior, only changing it when it does not work as expected, and then testing further.
Based on the log you show, the link directions are impacting which issue is the "trigger / source" versus the "destination" for the linkage. And, there is not one-rule-works-for-all solution for these cases.
For a possible solution when one wants to handle both possible link directions, the rule needs an if / else block to test the work item types, and then put the branch in side accordingly. For example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
bummer theres not a generic "copy all links solution"
thanks!
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.