Hi all,
We’re currently using JMWE to ensure that Story Points are filled in when an issue is set to the “Done” status; if this isn’t the case, the issue reverts to its previous status.
I’d now like to achieve this with an automation rule, but I’ve already set up various actions using branches, if-else statements, etc. However, it boils down to having to create a separate rule for each status transition, as shown in the attachment.
So, if the transition is from A to Done and the conditions aren’t met, it reverts to A.
Since the workflow has 10 statuses, I’ve created 10 automation rules.
Is it easy to merge these, or is there another way I could have solved this?
I also have a JSON file, but I can't attach it here. If you email me, I'll send it to you. Eric.Roetenberg@Enexis.nl
grtz. Eric
Use a workflow restriction to block the transition silently, or a workflow validator to provide user feedback. See examples below.
I second the reply from @Geert __ 2improveIT
Use workflow validations or conditions instaed of automation to revert a work item to the previous status.
Prevent it or provide guidance to add it before the transition can be done
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hallo Geert @Geert __ 2improveIT
Deze optie werkt perfect, ik heb de laatste gebruikt maar is het nu ook mogelijk om bv deze rule alleen te activeren als het gaat om een bv alleen om 2 type workitems User Story en Improvement. ik hoor het graag zou er zeer mee geholpen zijn .
Groet Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes you can create a workflow and assign it to specific work items. Copy your current workflow, add it to the workflow scheme and assign it to the work items "User Story" and "Improvement". Remove the validator in the original workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Geert __ 2improveIT dat was een goed idee dit werk bijna zoals ik het hebben wil. Kan ik ook nog een extra voor waarde mee geven bv veld Synchronisatie moet op JA staan.
Dan heb ik mijn hele automatiserings regel afgedekt
dus dan heb je storypoint moet een waarde bevatten en Synchronisatie moet op JA staan
Groet Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure, you can add an extra validator (match regular expression).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Eric Roetenberg
You can leave the From status blank and set only the to Done as suggested @Lalithesh , so the rule captures transitions from any status.
With this automation approach, the issue is moved to Done first and only then reverted. This unnecessarily consumes an automation execution and adds two transitions to the issue history.
In my view, if you are a Jira instance administrator, the cleaner solution is :
Identify all the workflows concerned and add a validator to every relevant transition to Done
with an error message such as:
“Story Points must be filled in before the issue can be moved to Done.”
You could also add a transition screen containing the Story Points field.
This blocks the transition and avoids maintaining a global automation rule with complex conditions.
BR,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the Atlassian Community!
If your goal is to transition the work item back to the previous status from Done, then you can achieve it by using this smart value {{changelog.status.fromString}}
This will automatically revert the status to the previous stage.
Hope this helps :)
Cheers!
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.