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.
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.
Cheers
Thorsten
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.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
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.