So I try to explain what is the situation: I have an issue, where you need an approval to go further in workflow (transit status). Approval is a subtask. To transit the issue to next status (Risk Treatment) should the last approval subtask must be in status "APPROVED", That means, you might have many approval subtasks, for example you have 2 approval subtasks and the first one is in status "rejected" then the second one thus the last on is in status "approved". In this case you are able to transit the issue to next status (Risk treatment).
If you have just one approval task, which is rejected, you should'nt be able to transit the parent issue, until you create a new approval subtask, which should be then approved.
Is it possible to solve this problem with Jira Automation?
Hi @Lukas - This is possible, but not with automation alone. Here's what you need:
@Mark SegallI have to say my project is company-managed business project in Jira Cloud and not software project. So that means, the use of flag field or component ist pretty limited. What can you recommend in tis case?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you a Jira Admin on the instance? That will be critical because you'll need those rights to set the validation rule.
I haven't tried myself, but you may still be able to use flagged. JSM projects don't use the flag feature either, but I'm able to set it with automation and have done so for this exact purpose in the past (actually cements it as a good option because users can't inadvertently muck with it). If it's truly unavailable (even to automation), I'd recommend some type of custom field that is not on the screen config, but available to the field configuration scheme - making it hidden to users.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark Segallyes I got admin rights there. So can you please explain it, what I have to do exactly? I've never used components by the way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure... Here are more detailed steps:
First, we'll add the flagged validator on your workflow...
^.{0}$
Next we'll set up a couple automation rules:
Rule #1: Flag Parent when Sub-Task is created
We want the flag to be set as soon as a sub-task exists:
Rule #2: Unflag Parent when Sub-Task reaches Approved
This will only unflag the parent when the last sub-task has transitioned to APPROVED status
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark Segallsomehow that didn't worked. Should I add the field "flagged" to the Risk Screen? Here are the screenshots from them, what I've been set so far:
This approval subtask will be created automatically, when specific conditions are are met, (likewise risk score is higher than 16 etc.) but this doesn't matter, I think.
Rule status is for both rules CONFIG CHANGE, so these rules doesn't executed, I assume.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A couple things...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark SegallNow I'm one step ahed, so parent issue get flagged now. But I'm still able to transit the issue, even approval subtask is rejected as you can see at the screenshot below. What could be the reason?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You know what... I had to use a validator in my past and your use case would need a condition. With a validator, the option is still there, but it will error on you if you try to select it. Whereas a condition will hide the status altogether.
So, let's do this:
Sorry about that.
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.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline 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.