Forums

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

Populating Custom Field Drop-down With JSON Data

Sascha
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 5, 2013

Hello Atlassian Community.

I would like to achieve the following, your help is needed and welcomed.

We use BuildBot for our build-system and management. One of the neat features of BuildBot is, that it offers an API printing (fairly human readable) text output. Sample output below:

{
  "dir": "TestBuild1", 
  "cachedBuilds": [
    0001, 
    0002, 
    0003, 
    0004, 
    0005, 
    0006, 
    0007, 
    0008
  ]
  }

That said, I would like to grab data from that respective output and auto-populate a JIRA drop-down during bug/issue creation.

Data represented is in a numbers-only format which never shows more that 10 new values.

Furthermore, I would like to achieve this without the use of paid plug-ins. The most notable is nFeed, which would break the budget for this venture.

Thanks in advance!

2 answers

0 votes
Melissa Corp
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!
January 27, 2016

Is there a way to use script runner to accomplish this?

Guido Neele
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!
January 3, 2017

Hi Melissa,

I'm curious to know how you solved your problem. Did you use ScriptRunner?

Thanks

Melissa Corp
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!
January 3, 2017

We ended up using a plugin of our own development. We were repeatedly running into issues with our tomcat accepting scriptrunner's requests.

0 votes
Andrey
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.
April 28, 2013

You may create your own plugin which will contain customfield with ajax query to data you need.
Examples of customfield plugin you can find here or in Jira Development CookBook
Format of example output is JSON, ajax support this. Here I described how to do AJAX call. https://answers.atlassian.com/questions/157639/ajax-calls-to-jira-from-custom-field

Except this you need some javascript to show your data.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events