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

PRAMOD KUMAR REDDY KASIREDDY August 23, 2022

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
David Freitez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2022

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

PRAMOD KUMAR REDDY KASIREDDY August 24, 2022

Hi@David Freitez , can I get that groovy script to programmatically update custom field values. Actually we're using script runner plugin.

David Freitez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2022

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2022

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

PRAMOD KUMAR REDDY KASIREDDY August 24, 2022

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
AUG Leaders

Atlassian Community Events