This is a tutorial shows how to update an Insight Object with the same name as the Custom field ID 12345 of the issue.
You can add more issue data by simply using the {{issue.xyz}} Variables - Usage a notation to access the issue data.
App: https://marketplace.atlassian.com/apps/1212137/insight-asset-management?hosting=cloud&tab=overview
Steps
- Create a new Action by clicking
buttonStatus colour Blue title Create - Enter a name: Create Insight Object and click
Status colour Blue title Create - Select Method:
and URL: <your_base_url>/rest/insight/1.0/object/{id}Status colour Yellow title PUT
From the Insight REST API we can read to create on an object we need to call PUT https://documentation.riada.io/display/INSSERV/Objects+-+REST - Select Authentication method: Basic Auth, specify a user that has permission to manage insight schemas
- Add request headers, key: Content-Type with value application/json
On the Body section add the following
Code Block { "attributes": [{ "objectTypeAttributeId": 1, "objectAttributeValues": [{ "value": "{{issue.customfield_12345}}" }] }] }
- Click Triggers tab
- Select
eventStatus colour Green title ISSUE CREATED - On JQL Condition. When to execute the event(s) write Project = TESTB and to limit the trigger to the TESTB project
- Click
Status colour Blue title SAVE - (Optional) Click Test button, Issue Key needs to be provided and click Send, Then go View Execution Log.