Sorry, we don't support your browser.  Install a modern browser

Add JSM Assets support in Adaptavist Bridge#137

R

I have a use case where I want to display data from a JSM Assets object in a script fragment using the Adaptavist Bridge but cannot since the bridge only supports issues (as far as I can tell). It would be very helpful if the bridge were to be extended to support Assets.

10 months ago

Hi Rick,

Thank you for your response.

I can confirm that the Adaptavist Jira Bridge API, only currently can access issue fields as currently the Javascript API that Atlassian uses, only provides access to these and does not provide access to asset API’s.

However, when using a script fragment with custom HTML and CSS you can use the javascript fetch API to call external API’s to pull in data and you could use this as a workaround to call the JSM Asset API’s using an API token to authenticate requests to pull in the data you need.

As an example I have created an example to get the weather which can be viewed at: https://codesandbox.io/s/quizzical-panna-mi5yde?file=/index.html

You can the configure a fragment to display the single URL of: https://mi5yde.csb.app/index.html and will see when the fragment is opened and the button clicked the data is set that is returned from the external endpoint.

I hope this helps.
Kristian

10 months ago
1
Changed the status to
Gathering Interest
10 months ago