It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Set a custom field value during specific workflow transition

Is it possible to update a custom field to a pre-determined value only when an issue makes a specific transition?

For example, we would like to update a custom field to a particular value only when it transitions from the "Open" status to the "Closed" status directly.

2 answers

0 votes

Hi @Garry_Harman 

It is certainly possibly using a post function in your workflow's transition.

There is a post function called "Update Issue Field" but it is not for custom fields. So I would recommend you to take a look at ScriptRunner which can do exactly what you are looking for. This page has some examples as well.

I hope it helps.


I'm surprised this isn't something that can be done using the Post Function in the workflow.

I'm super inexperienced with coding, I know how to understand/change values from existing code, but I cannot write something on my own. Should I forget trying to implement this?

Hi @Garry_Harman ,

as mentioned before you won't be able to update a custom field without an additional workflow app. e.g. Jira Workflow Toolbox, Jira Misc Workflow Extensions, Jira Suite Utilities or the aforementioned Script Runner if you're familiar with groovy.


Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you