Forums

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

Select workflow based on a custom field value

Oleksii Filiaiev October 3, 2019

I must have statuses 1, 2, 3, 4a/4b, 5a/5b, 6, 7, 8 in my workflow.
To decide which status to use a/b the system must rely on a Field with possible values A, B, C.
IF A
  then 4a-5a path 
ELSE
  4b-5b path.

Please share your ideas if any? May be some scripting? 

1 answer

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2019

There is no way to do what you say in the title.  The workflow is determined by the choice of issue type and project, and what the workflow scheme says it should be for that choice.

But you can route through a workflow with custom field data.  I use "contrary pairs" of "conditions" to do this.  In your example, I would

  • Create a transition from 3 to 4a, with a condition saying "if custom field = A"
  • Create a transition from 3 to 4b, with a condition saying "if custom field is not A"

People will only be offered one transition to 4.

Note that

  • this works for existing data, not entered data at the time - if you put the field on the transition screen, someone could start the transition to 4a and change the field to B, C or D as they do it.  (You can block that with a validator if you need to, but I would just not put the field on the screen)
  • the conditions probably need to be provided by an app - the ones built into Jira are not quite capable of this
Oleksii Filiaiev October 3, 2019

Thanks. The solution looks exactly what I need. As I understand I could do it with the help of some plugin. Du you know an appropriate plugin?

Andrew Laden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2019

There are lots of options, but JSU Automation Suite for Jira Workflows (AKA. Jira Suite Utilities) is probably the simplest one to use and has lots of other useful functions.

https://marketplace.atlassian.com/apps/5048/jsu-automation-suite-for-jira-workflows?hosting=server&tab=overview

https://confluence-apps.beecom.ch/display/JSU/Value+Field+Condition

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events