Forums

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

How can I use scriptrunner for JIRA Cloud to update a dropdown custom field?

Office of IT
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2018

I am trying to use scriptrunner to change a field from one dropdown option (which is default) to another option at a certain point in the workflow. Can I achieve this using a post function? I cannot get the script to work.

 

I'm using: 

issueInput.fields.customfield_13300 = 'test'

 

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Champion
August 28, 2018

Hi Office of IT,

I can confirm that when using the built in Modify Issue post function provided by ScriptRunner for Jira Cloud that we provide some examples of how to set different types of custom fields located on the Examples line below the Additional Code box.

In order to set a select list type of field then you can click on the Set Select List link which will populate the Additional Code box with the code to set a select list field and you can modify this example code to specify the ID of your custom field along with the value that you wish to select. 

If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.

Regards,

Kristian

Priya Krishnamoorthy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 12, 2023

Can someone pls suggest a code to update a drop-down value (custom filed) using jira cloud script runner?

 

I really don't understand nor able to locate the additional code box.


Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events