Hi Community,
I'm trying to figure out the best way to kinda "replicate" this type of legacy automation to non JSM project
The Target is, on a Software Project Issue, when a linked issue is transitioned to "Done" a comment is placed on the main issue.
I noticed that one way is to have automation in "all involved projects" on transition and update linked issues with a comment, but besides the need to have one automation for each project, the scope is only for that project, and don't drop comments if the linked issue is in another one.
Asking for any ideas on this or if its even doable
thanks
Hello @Nuno Pimenta (ADM)
It seems you would like to add a comment to an issue in a software project whenever a linked issue transitions to "Done", regardless of the project the linked issue is in.
For this you will follow this step-by-step:
This will ensure that whenever an issue that is linked (either as 'is caused by' or 'causes') transitions to 'Done', a comment will be added to the related issue.
Please note that in the JSM project the transition is statuscategory which means that for the software project you will have to select all statuses that fall within that category. For example in your workflow this might also include 'Finished' or 'Discarded'.
If I may suggest an adjustment. From a logical perspective it would make sense to only add this comment to the ticket that causes the issue as you would like to know that the cause is 'done' and not that ticket that is caused by the cause is done.
Let me know if you need help finetuning the automation.
Best regards,
Patrik
Thank You for this Patrik!
Quick question, being in the Global Automation, this will be applied to all Projects that have linked issues?
asking because the goal here is,
I have a Project A that can cause linked issues in Projects B, D, F, and Z, when these linked issues get transitioned to done a comment is placed in Project A main issue (your suggestion on only causes makes sense).
But this only for Project A, all other projects inside the Jira environment should have this implemented for their issues.
thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Happy to help, @Nuno Pimenta (ADM),
Yes, you are right. The Global Automation rule would apply to all projects in your Jira instance. However, it does not mean it will affect all the issues in all projects unless they meet the rule criteria.
'I have a Project A that can cause linked issues in Projects B, D, F, and Z, when these linked issues get transitioned to done a comment is placed in Project A main issue (your suggestion on only causes makes sense).'
Your requirement suggests that is caused by should be used, not causes as you want to add a comment to Project A issue (is caused by = Main Issue) not Project B, D, F or Z. When working with linked issues you have to understand that we are running the automation from the trigger issue (Project B, D, F, or Z = is caused by A) on the destination (Project A cause).
I would also suggest that when the main issue in Project A is resolved, you should consider adding a comment on the linked issues in Projects B, D, F, and Z. Especially if resolving the main issue in Project A unblocks or affects the linked issues in some way. This would mean using causes when the Project A is transitioned do Done. This is not accounted for in the automation below (I stuck to your requirement in your previous comment).
Here is a rewritten automation to suit your needs:
The 3. component ensures that comments are only added to Project A's issues, even though the automation runs globally.
The 4. component extends the automation to add a comment to issues within the same project when linked issues are resolved.
Projects that are neither A or the same as the trigger issue have no actions performed against them.
Please also consider the following
I hope this helps!
Let me know if you need further clarification.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank You Patrik! Works like a charm!
I have added an extra condition, so it will check all linked issues, and only drop a comment when the last one is done.
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.