How to update Asset object attribute using automation on Data Center


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

As an admin, you may want to setup an Automation for Jira rule that is able to edit the attributes of an Assets object. This is currently possible on Cloud and for that we have the following feature request for it on Data Center:

JIRAAUTOSERVER-464 - Getting issue details... STATUS

For Reference this is how it is done on Cloud:

Environment

Jira Service Management Assets

Automation for Jira Server/Data Center

Possible Solution

While this would require a lot of customization, it's possible to edit Asset object attributes using its own REST API endpoints:

You'd need to use Send Webhook action to:

  • <BASE_URL>/rest/insight/latest/object/<ObjectID or Key>
  • The Key of the object for current issue can be fetched using the smart value issue.customfield_XXXXX.key  

With the attribute ID you'd like to change, feed it into a POST on:

  • <BASE_URL>/rest/insight/latest/objectattribute/<AttributeId>



Last modified on Jan 6, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.