MultiSelect-Filed with data from external API

Björn Lotz
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!
March 1, 2024

Hi,

we have a external CMDB-Application for our IT-Assets with a Json REST API. For our Jira Project we want to create a Multi-Selection Field, which gets its options (IT-Assets) from the API of the CMDB via HTTP Request.

In my former Company we had the same CMDB-Software running. There we used the Scriptrunner on a Jira OnPremise installation to get this option. For this we used the Custom Field Picker option from scriptrunner and it worked. But the Custom Field Picker seems to be missing on scriptrunner in Jira Cloud. 

How can I create a custom field which, when selected, returns a list of entries from the HTTP request?

I have only found the possibility to trigger an HTTP request when creating/changing an issue via automation for example.

2 answers

2 accepted

0 votes
Answer accepted
Thomas Opiolka
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.
March 4, 2024

Hi @Björn Lotz ,

It seems like "External Data for Jira Fields" would be the ideal solution for your needs. This app allows you to synchronize field options with a native field or leverage a live search feature, offering the ability to connect to almost any API or database as a data source.

Please remember, the marketplace offers additional options that might suit your needs, which you can find through a search. I should also mention that I am collaborating with the vendor of the app I recommended.

I hope this proves helpful.

Regards,
Thomas

0 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2024

Hi Bjorn,

Inside of ScriptRunner for Jira Cloud, there is no way to dynamically populate field options from an external API, when an issue is created or edited like you can do in the on-premise with the field picker, as Atlassian does not provide the APIs to create this in Jira Cloud.

The closest workaround would be to create a select list custom field and call the Update custom field options API to set the options in the field.

You would then need to use a Scheduled Job script to update these options on a set schedule to get new values for users to select.

I hope this helps.

Regards,

Kristian

Suggest an answer

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

Atlassian Community Events