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'
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
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.
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.