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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.