Hi
I have project where i have main issue. When user click IN PROGRESS then there is one sub-task and 2 another ticket into another Jira project. Relates to issue link between main ticket and another project tickets.
Now when Relates to and sub-task status is Closed, how i should write automation what close main ticket also?
WHEN Issue transitioned to Closed
IF Issue Type equals Sub-task
For Parent
IF Sub-task match status = closed
Then Transition the issue to Closed
but how i should add relates to issues into this ?
Hi @Urmo Luts ,
As far as I understand your requirement this needs to be scoped from 2 sides. Let´s wrap this up a little bit:
2 projects:
So from my point of view the use case you described has 2 entry points:
Does this describe your use case and also an idea of your automation rule(s) ?
Looking forward to your feedback.
Best
Stefan
Hi
Seems to be that right now is working when last closing issue is sub-task. But when another issue from Project Kommunikatsioon or Kasutajatugi, then it does not work.
I have sub-task + two another jira project and they have different closing status (Done, Resolved, Closed).
Yes i know there is today too much status what do same thing but i'm working to close up this old solution.
with best
Urmo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Urmo Luts ,
As I mentioned splitting this use case into 2 different rules would make it easier and doesn´t really need for checking projects as the main condition is the status of wheter subtasks or linked issues.
Your use case obviously has 2 different triggers and for each trigger it´s necessary to check different conditions. Therefore i would suggest to create 2 different rules.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I made one long automation into two. Seems to be that sub-task close work fine but this when sub-task's are closed but relates to tickets are opened but after last relatest tickets closed it does not close.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Urmo Luts
I tried to reproduce what I got from your description:
Rule 1 - trigger is transition from linked issue (relates to) to done
Rule 2 - triggers when subtask is transitioned to done (then checks if other subtasks exist and all are done and if related issue exists and is done)
This is the most simple version of the described requirement. Issue types and status needs to be set according to your configuration.
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Seems to be that it allmost works but i think i had made some error into.
Right now is one relates to is closed/resolved/done, then parent issue is closed also.
Seems to be that i have done something wrong...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
mhm....got it.
Within the branch (where you change context of the automation rule to the issue that should be closed) add a condition that checks if there are other linked issues with status "not closed" (like the other rule is checking for other open subtasks).
Could look like similar to following:
Best
Stefan
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.