Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create custom fields in JIRA, and fetch the fields' data to external program?

ODesh February 2, 2018

I want to create a custom text field in user stories of JIRA. Once the custom field is created, when someone inserts/updates the custom field, I want to fetch the data on custom field to an external program in any format (i.e. String, JSON, .doc, .xls, .csv etc.)

 

Thanks in Advance,

Om

1 answer

1 accepted

1 vote
Answer accepted
Warren
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.
February 2, 2018

Hi

This will show you how to add a custom field (there is a toggle in the top right for Cloud / Server).

Using the REST API, you can get the data for any Jira (standard or custom) field - see the documentation here.

I hope this helps

ODesh February 2, 2018

Thanks Warren. Can I add a custom field if I am not a JIRA Administrator?

Warren
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.
February 2, 2018

No, custom fields are not project specific, so you will need to be a Jira Admin (not project Admin) to be able to do this

ODesh February 2, 2018

Thanks again. 

ODesh February 4, 2018

Warren, how can I fetch the data of default fields of user stories in JIRA ?

Warren
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.
February 4, 2018

So, from the link I sent you above, let's say we just want the details of one issue. The format is here

If I just use

/rest/agile/1.0/issue/{issueId}

I will be returned a JSON packet with ALL fields (default and custom), but I could pass in a parameter which would reduce the size of the JSON and only give me the specified fields e.g.

/rest/agile/1.0/issue/{issueId}?fields=key,customfield_xxxxx,customfield_yyyyy,description

The fields parameter is applicable for most of the API calls

ODesh February 6, 2018

Thanks Warren. It was a great help.

Stephen Engongoro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 27, 2018

Hi,

Is it possible to do this but instead of putting the data into an external program, have it show in a separate custom field?

Like Esteban Borja Lopez likes this
Esteban Borja Lopez
Contributor
February 25, 2022

were you able to manage this @Stephen Engongoro ?

Suggest an answer

Log in or Sign up to answer