Dear all,
I have a case where I need to close different issue related to parent issue when parent goes to a certain status
Let see the issue configuration below as an example
As you can see from parent issue above it has 2 linked type referring to different issue.
What I am trying to do is that when parent issue is transitioning to DONE, then I need to transition to COMPLETED all issue which where linked type is "Refer to Incident" and "demands"
My current rule is as below :
Any idea how can I acomplish this ?
Does the Link type accomplish a AND or OR operation ?
Do I need to add an other step ?
Thanks for clarification
regards
Hi @serge calderara ,
alternatively, if you have different workflows and need to distinguish between the final statuses, you can do it like this:
I agree with @Dirk Ronsmans , but I've already had this picture prepared, when I found out there's his answer , so I decided to post it instead of throw it away :-)
@Hana Kučerová interresting this approach too, I will keep it thanks
By the way, I have heard that in cloud Automation there is a kind of limitation token of number of execution rules.
Is it still the case ?
If yes how do we know when a rule fails becuase of reaching the token limit ?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@serge calderara There is still a limit on how much components you can use
https://support.atlassian.com/jira-software-cloud/docs/what-are-service-limits/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @serge calderara ,
For me the Link Types there would be all the link types that will match. One link can only have a single link type so adding in all the link types that you need should act like a OR
Something like all issues where link type = demands or refer to incident
I am wondering tho if you even need to do this.
You are
1: trigger it on the parent issue when it goes to Done
2: you then check the project, why not just make a project specific rule
3: For linked issues: select an issue type -> why don't you just set the action to move them to completed under this component?
Imo, it will loop through the linked issues and you already check it in the For Linked Issues component.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Something like
Unless I'm completely mistaken and misinterpreting this rule :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Dirk Ronsmans , I will give a try and let you know
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
dear @Dirk Ronsmans my scenario is a bit more complex here is the complete picture :
The trigger issue is as below :
As you can see the first link type is "is demanded by" which then succeed to transition the incident SD-4508 to completed. Then if I open the SD-4508 it displays as below :
As you can see from above my goal is to close also the Refer to Incident issue when trigger issue SWD-233 is set to DONE.
But as you can see it does not work ., status remains WORK IN PROGRESS L2
is below my rule :
Seems that the condition in red square above is not logically apply teh condition.
Any idea ?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
so If I'm getting this right you have 3 (or more levels)?
right?
And instead of having to make separate rules that would trigger on a specific level you are trying to combine them by having the rule trigger multiple times?
If so, make sure to check on your rule that you also have the checkbox enabled on the rule details that it can be triggered by another rule. Otherwise it will just do the intial level main root and demanded by but as the "refer to incidents" arent on the first level it doesn't match there (and if you don't have that checkbox enabled it won't rerun the rule on the "demanded by" incident (so it will just stop after one level)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
correct..
I will give it a try an and let you know.
Do you thing it will be better to have sperate rules ? if yes how would you split them ?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not the most complex rule so one should work too. Could you check first if you have that checkbox enabled to allow one rule to trigger another?
I got a feeling that should make your rule work since it does finish the first level if i'm right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @Dirk Ronsmans in fact it execute only once the For Linked issue Action and I need to execute that part also for incident type
The signification of the check box you mentionned is wierd because it says that it allows other rules to trigger this rule BUT in fact I do not have other rule which trigger that rule...
I check it and but result is the same it handle only the linked issue of the issue which trig the rule
Parent issue (SHW-233) : trig the rule when set to DONE
Linked issue type : Demand by => major incident (SD-4508) =Set to COMPLETE
Issue SD-4508
Linked issue type : Refer to incident=> incident (SD-4505,SD-4506) = Remains open ???
Any idea, does it mean I need to setup a separate rule to handle issue SD-4508
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well it also means the rule can trigger itself again.
as you have multiple levels that’s why I was thinking about recursion
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes but if the whole rule was suppose to trigger a second time it will not trig because of the first rule condition which is triggered only if issue transition to DONE, which has been already done, so rule will not trig
Any idea how to solve ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah correct, somehow I missed that one.
gimme a couple of hours to rebuild this in my test instance and I'll see what I can come up with :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dirk Ronsmans thanks for help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just so I'm clear we got 2 different issue types here with a separate flow?
and the done issue has links to a issue that will be "completed"
Those completed issue might again have links to other issue which need to become "completed"
right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @Dirk Ronsmans
The firts issue is triggered manually to Done which then start the autommation rule to set to Complete the linked issue of the current issue which trigger the rule.
Then the issue which has been set to Complete ( Linked issue) at step 1 has some other linked issue that need to be set to Complete as well
Hope it is more clear to you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dirk Ronsmans , did you manage to find something ?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @serge calderara ,
I apologise, I haven't had a chance to work on this yet on my instance.
I do believe it would make more sense to split this in to 2 automations.
For this, make sure to have the checkbox enabled so rules can trigger each other. This would also help if you were to Complete an issue without a MAJ-INC that the refers to incidents would also Complete.
If you make this as a project rule you will have no impact on your execution counter either as those are unlimited.
if you really want to make it as a single rule we'd have to work statusses as triggers and I'd set a IF clause to see if the issue status = Done and an IF Clause to see if the issue status is "Completed". That way you'd split up the rule but within a single rule (if that makes sense).
If you get back to me what your preferred solution would be and give me a day or 2 I should be able to find some time to provide you with screenshots.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Dirk Ronsmans , here is attached a complete overview of the flow to make you better understanding of what I am trying to reach.
You have understand that as we are running on Cloud, rules count execution is an important aspect and we try to optimize the number of rules. Of course in case it is simpler with different rule then no choice but we need to be carefull that rule can be started by any issue before finding an unmatch condition which make it stop
Hoping the file will help:
https://1drv.ms/b/s!AuPzV8ZG3v-2lUtuKHBLxAHRnTn1?e=QeL5U8
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'll take a look.
Just so you know, project specific rules have unlimited executions. Only Global Rules count toward your execution counter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @serge calderara ,
I've made a small test in my environment and I think this might work.. or at least as a proof of concept.
Since it is one rule you'll need to put it as a global rule. the rule itself will re-trigger itself too so make sure to put that checkbox.
i've added both transition statusses as the trigger, "completed" and "done" and then in my For linked issues I verify the link type and tell the issue what status to transition too.
Since your issues are in multiple projects you won't be able to do it as project specific rules. However if you specify what link type you want it to happen for this should be the way to go.
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.