Populating Custom Field Drop-down With JSON Data

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": [

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

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.

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

Hi Melissa,

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


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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 6 hours ago in Agile

What is Scrum? A good, bad, and ugly answer.

In a world of dark-scrum, faux-scrum, and scrum-butt, the question still remains: What is scrum and how do you do it “right?” That’s the question we set out to answer. I'm Max, I've been teaching c...

47 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you