Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Editing assets objects using jira automation

Daniel Kerr February 21, 2024

Hi everyone,

I need help with editing assets using Jira automation. I've enrolled in both Atlassian university assets courses (essentials & advanced), and have found them extremely helpful in learning how to configure our asset management database as well as certain things like how to create new objects via Jira automation. BUT, when it comes to editing existing assets using Jira automation I haven't been able to get anything to work and I feel that I am at a stalemate. For reference, we are on the cloud version of JSM.

Could someone help me with the following use case that I have below:

Example of what we are storing in our CMDB:

- Licenses with their application, application reference, assigned users & license status (see attributes below)

Image 1.png

Image 2.png

Then I have configured the below Assets field for the test request form so that only available Salesforce licenses are shown on the portal request for a user to select an available license:

 Image 3.png

When raising the request, the available license displays a default value as expected.

Image 4.png

The below automation has been set up to (try) change the license status from "Available" to "Not Available".

Image 5.png

This rule doesn't make any changes when the issue is created, and the status of the selected license remains set to "Available". I also have tried using the "Edit issue fields" action (with & without the edit attributes action before it), but whatever I put as a value for the edit issue field, I get the below error:

Image 7.pngImage 8.png

The field will populate with the values entered on the request form onto the ticket but the automation rule will never execute any actions but advise in the audit log that the rule was ran successfully but no issues were found.

Image 9.png

Image 10.png

Can someone please guide me on where am I going wrong with my automation rules for editing existing objects? 

1. Is there something wrong with how I am configuring my asset's custom field?

2. Should I be using "edit object attributes" or "edit issue fields" or both?

3. With "Edit issue fields" (if I should be using this), what do I need to be storing in my AQL queries to change the status of an object?

4. Finally, once I understood how to configure this, I would look to also update the assigned user as well which is using an object type attribute.

If anyone could provide some assistance with this, I would be extremely grateful.

1 answer

3 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2024

The Edit Object component can only be used on an AQL branch, and you can only create the AQL branch if the rule is created from Global automation.

Screenshot 2024-02-21 at 10.56.35 AM.png

Edit issue fields only applies to the issue, it cannot be used to edit an object. 

What type is the user attribute? User? If it is then you need the Atlassian Id of the user that you want to set it to.

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events