Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically assigning assets

Paul Lambert1 July 26, 2022

We've built a cool integration where the JIRA Asset Panel is populated and shows asset information in an IFrame, but now we want to automatically allocate assets as a ticket is being created.

- User clicks "New Ticket"

- Users email address is sent to an API which retrieves the users main Asset

- That asset gets automatically associated with the ticket before the user has even saved it

I can't find any documentation on how to do all this, but I suspect we will need some kind of trigger (webhook??) that runs program code, that would call into our API, grab the assetID, and then push it somehow into the JIRA ticket asset relationship.

We are programmers, but not JIRA programmers :) so any pointers or examples that might help would be great.

 

 

1 answer

0 votes
Paul Lambert1 July 26, 2022

There's a link here which shows how to programmatically link an asset to an issue

https://ecosystem.atlassian.net/wiki/spaces/JSD/pages/556466196/4.+Issue+to+Asset+relationship

However I don't know how to call that from a trigger, or whether it would be too soon on issue create since the issue record might not exist until the user clicks save

Suggest an answer

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

Atlassian Community Events