Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I change return the workflow to a certain step if information is changed

Sigridur Harpa Hannesdottir
Contributor
March 11, 2021

Hopefully someone can help me.

How can I, through a workflow, make sure that if a custom field (in this case called Risk level), is raised from 1 to 2 or higher, that the jira ticket changes course, and then asks for another kind of approval?

To explain.

If a request has Risk level=1 then it goes to point A. If a request has Risk level = 2 or higher, then it goes to point B and an extra approval is needed. 

I need to make sure that if a request, that has passed point A in the workflow, and then the Risk level is changed from 1 to 2 or higher, that the workflow returns to point B

Hopefully someone understands me.

Best regards
Sigga Harpa

1 answer

0 votes
Dirk Ronsmans
Community Champion
March 11, 2021

Hi @Sigridur Harpa Hannesdottir ,

I think i understand :)

so basically you hae 2 approvals (lets call them A & B)

  • if Risk = 1 then Approval A is required
  • If Risk = 2 then ApprovalB is required even if it was already approved by A

 

You could do something like this but you will require an app for it imho, something like Scriptrunner or Automation for Jira.

What you need actualy is an app that can trigger something on an update of a request and then check on a field.

From what I can remember the "Issue Updated" trigger doesn't exist by default so that would mean you need to use either 

  • Automation with a issue update trigger
  • Adaptavist Scriptrunner with a script listener (issue updated)

In the workflow itself you'll need to make sure that the approval step B of course has the option to transition to from everywhere it can be when that Risk field is changed.

 

Does that make sense? If I understood it wrongly or you want me to elaborate on a specific thing. Let me know!

Sigridur Harpa Hannesdottir
Contributor
March 12, 2021

Hi @Dirk Ronsmans 

Thank you for you reply.

I think you understand me perfectly. 

Just to clarify, approval A is always needed, but not approval B and this is only a problem when A has been approved and risk level is then moved from 1 to 2 or higher because if the risk level is 2 or higher you also need approval B. The workflow however does not ask for approval B if this is done.

Will try your suggestions.

Best regards
Sigga Harpa

Suggest an answer

Log in or Sign up to answer