Forums

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

Change status of selected asset object after a request via a form

Fabian.pallestrong March 28, 2025

Hello,

We have a form where users can rent assets. I want to automate the process so that when a user requests an asset (an issue is created), the status of the selected assets changes to "requested."

How can I implement this automation?

2 answers

1 accepted

4 votes
Answer accepted
Akhand Pratap Singh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2025

Hi @Fabian.pallestrong

Assuming you are using a Custom IT Asset field Linked in your form.

IT Asset update.png

 

From the above Screenshot.

  • You can use Branch and then select Branch For AQL, there select your schema and AQL, your AQL Should be something like Name = "{{customfield_ABCDE.label}}"
    Name is the Name of the object and ABCDE is the ID of the Custom field.
  • Next Action is to Edit object attribute, select the attribute in your case status and set value as requested

I hope this works, in case you face any issue, do reply here.

Fabian.pallestrong March 28, 2025

Hi @Akhand Pratap Singh ,

if the user selects one asset it works but if there are multiple selected assets in the issue it does not work. What do I need to add for multiple assets?

Thank you very much

Akhand Pratap Singh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2025

@Fabian.pallestrong 

Can you try below automation for multiple values and check if it works?

Multiple asset.png

 

Here branch will be Advanced branching

  • Select smart value as {{issue.customfield_ABCDE}} where ABCDE is Custom field ID and give it a variable name
  • Then in action select Edit Asset field attributes

Let me know, if this works

Like Fabian.pallestrong likes this
Fabian.pallestrong March 28, 2025

2025-03-28 15_37_15-Audit log - Automation - Jira und 3 weitere Seiten - Geschäftlich – Microsoft​ E.png

 

It does update the asset status but i have errors in the audit log.

This automation should only run if I have assets in the issue. It should not run for every issue. Do I still need the IF condition IT Asset is not empty?

Akhand Pratap Singh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2025

@Fabian.pallestrong ,

From the error it seems it first edited the attribute and then gave error on the same, can you try it with condition, not sure if it should have any impact on it.

Fabian.pallestrong March 28, 2025

It does update the status but the audit log has errors. That's strange

 

2025-03-28 16_04_06-Audit log - Automation - Jira und 4 weitere Seiten - Geschäftlich – Microsoft​ E.png2025-03-28 16_03_36-Audit log - Automation - Jira und 4 weitere Seiten - Geschäftlich – Microsoft​ E.png

Akhand Pratap Singh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2025

It is great that it is working, for the error, you can check once from https://support.atlassian.com/

0 votes
Akhand Pratap Singh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2025

@Fabian.pallestrong , if it works, please do mark the answer as accepted :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events