Is it possible to change the workflow by updating the options of a Custom field?
Asked by Dinonath Khan:

Hey

<br />

Can anyone please confirm if it is possible to change the workflow through automation without altering the issue type and request type? Specifically, I have a custom field called "Tier," and I need the workflow to change based on the selected option in the "Tier" dropdown. For example, if "Tier 1" is selected, the workflow should switch to the Adops Workflow, and if "Tier 2" is selected, it should switch to the Finops Workflow(Workflow name). Any guidance on achieving this would be appreciated.


Answers:
author: Hans Polder
body: [@Dinonath Khan](/t5/user/viewprofilepage/user-id/5487871) ,

You cannot switch to another physical workflow in Jira. One issue type will always have one workflow linked to it.

However, you could adjust your single workflow to combine both flows into one, using 'conditions' in your transitions to work if a certain field is a certain value. This can become quite complex, but I've seen it work before.

comments: author: Dinonath Khan
body: Thanks Hans


author: Dinonath Khan
body: Hi Hans,

Could you please clarify the following point for me? It would be really helpful.

i.e **u** **sing 'conditions' in your transitions to work if a certain field is a certain value.**


author: Hans Polder
body: [@Dinonath Khan](/t5/user/viewprofilepage/user-id/5487871) ,

Certainly!

I'll show it in a few screenshots below.

1. In the workflow, select the transition and click on 'Conditions'

![Screenshot 2024-07-23 091455.png](https://community.atlassian.com/t5/image/serverpage/image-id/337208i2D14B1A8AEE771CF/image-size/large?v=v2&px=999 "Screenshot 2024-07-23 091455.png")

2. In the screen that opens, click the 'Add condition' button

![Screenshot 2024-07-23 091418.png](https://community.atlassian.com/t5/image/serverpage/image-id/337207i0B3E39F9FF1CD95D/image-size/large?v=v2&px=999 "Screenshot 2024-07-23 091418.png")

3. Then, choose 'Value Field' and hit 'Add'

![Screenshot 2024-07-23 091619.png](https://community.atlassian.com/t5/image/serverpage/image-id/337209i5776555D5891DA99/image-size/large?v=v2&px=999 "Screenshot 2024-07-23 091619.png")

4. Then, choose the custom field that you want to use, to make sure that only if this value is filled, people can choose this transition, then hit 'Add.

![Screenshot 2024-07-23 091726.png](https://community.atlassian.com/t5/image/serverpage/image-id/337210i13E92088BABA0647/image-size/large?v=v2&px=999 "Screenshot 2024-07-23 091726.png")

5. Save the workflow, apply it to the project in question and test it out! It usually takes a second or 3 to see the new statuses show up in the Status dropdown.


author: Dinonath Khan
body: Hi Hans  
Thanks a lot for supporting

just one small doubt

in the below screenshot are status 1 and status 2 different workflows? ![Screenshot 2024-07-23 091455.png](https://community.atlassian.com/t5/image/serverpage/image-id/337316i0C5BCFFB11628C48/image-size/large?v=v2&px=999 "Screenshot 2024-07-23 091455.png")


author: Hans Polder
body: Hi [@Dinonath Khan](/t5/user/viewprofilepage/user-id/5487871) ,

No, this is just one workflow in which I have added two statuses, with each their own Transition (in this example called 'Transition to 1' and 'Transition to 2'.

The beauty of transitions is that you can add conditions and validators to it, making sure it's only executable in certain situations (like the one you're looking for).


author: Dinonath Khan
body: Got it!  
Thanks [@Hans Polder](/t5/user/viewprofilepage/user-id/5506451)


Tags: cloud

jira-service-management

jira-service-management-cloud