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
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.
David
ServiceRocket
Hi@David Freitez , can I get that groovy script to programmatically update custom field values. Actually we're using script runner plugin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.