Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,772
Community Members
 
Community Events
168
Community Groups

We want to update the values of Custom fields programmatically in JIRA server.

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. 

2 answers

0 votes

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.

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

Like Craig Nodwell likes this
0 votes
Craig Nodwell Community Leader Aug 23, 2022

Hi @PRAMOD KUMAR REDDY KASIREDDY are you on Cloud or are you on Server and using the plugin? 

Hi @Craig Nodwell we're using Jira Server 8.20.3 

Like Craig Nodwell likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events