Hi 👋 ,
I'm trying to create automation that updates the custom field that I created with an option from that custom field. Updating custom field values with automation for Jira Server.Â
Hi @PRAMOD KUMAR REDDY KASIREDDY are you on Cloud or are you on Server and using the plugin?Â
Hi @PRAMOD KUMAR REDDY KASIREDDY
The way of programmatically update a custom field is through the API.
Now, you are able to do this writing your own code and using the API, depending on the Jira version, you'll find documentation, for example:
Also, you are able to update a custom field using a plugin such as ScriptRunner, where you'd be able to use GroovyScript with the Jira API to create your own scripts or use templates.
Hopefully this answer your questions.
DavidServiceRocket
Hi @Craig Nodwell we're using Jira Server 8.20.3Â
Hi@David Freitez , can I get that groovy script to programmatically update custom field values. Actually we're using script runner plugin.
Hi @PRAMOD KUMAR REDDY KASIREDDYÂ
Indeed it can be achieved. Look at this documentation:
https://library.adaptavist.com/entity/update-the-value-of-a-custom-field-using-a-listener
It's using a listener but it can give you an idea of how a groovy script is used to update the custom field.
Regards,David
It looks like you're new here. Sign in or register to get started.