Forums

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

How to update an insight object from Jira Service Management

Paul Mackie July 15, 2022

Trying to plan out an ITSM build whereby JSM agents would update an insight asset status from the JSM ticket. Presumably using an automation rule.

I have followed these instructions: How to update Insight Objects attribute using automation with values from associated Jira issue | Jira | Atlassian Documentation

But on running of the rule I get this error message: 

Edit Insight field attributes
No issues were found, stopping the rule.
It sounds like the automation rule is looking for issues to update and not assets or possibly some other bug. Am I doing something else wrong, or is there an alternative approach?

3 answers

1 accepted

1 vote
Answer accepted
Paul Mackie July 17, 2022

Hi @Robert Wen_Cprime_ for context the create object rule was part of the debugging I was doing, i.e. create an object with 1 attribute, and then use the rule I wanted to test to change the newly created object's status.

After a call with an ex-colleague I found out that the "Edit object attributes" rule I was using was the incorrect rule for what I was trying to do.

The correct rule for anyone else attempting to achieve similar is called "Edit Insight field attributes" - which confusingly is not under the insight automation rules (rather, the Jira issues) tab, however is the rule name is correct in the documentation linked in my original question.

A classic case of not being careful enough when reading the documentation, rather than an issue with Jira / Insight.

Many thanks for all those who have provided assistance, I will consider the question solved.

0 votes
Richard Malone October 25, 2024

I came across this while troubleshooting my own problems and thought to add some detail on how this has changed in the time since this was first raised. The support documentation in original post is out of date.

This is for Jira Cloud

Automation must be set in a global context in order to use AQL Branch.

My trigger is when a value is added to my selected Assets Custom field.

I then add an AQL Branch, where I set my Asset search criteria

Then I can edit the attributes of the selected object.

Screenshot 2024-10-25 at 11.23.47.png

0 votes
Robert Wen_Cprime_
Community Champion
July 15, 2022

Hello @Paul Mackie ! Welcome to the Atlassian Community!

So the error message is reading that issue search is not revealing issues.  Can you put a screenshot of your Automation rule?

Paul Mackie July 15, 2022

JSM_Automation_Error.jpg

So this is a test rule, that creates an asset, DH-6, which is successfully created, however the final part of the rule "Edit Asset Status" has been saying that no issues are found (I presume it means assets) but there is nowhere in the rule configuration to specify which asset should be updated.

Paul Mackie July 15, 2022

I have tried a few different approaches however I can't seem to get that particular part of the rule to identify any objects that have been created in insight

Paul Mackie July 15, 2022

As some further background I am familiar with both Insight and JSM, however the new Automation rules for Insight for Cloud seem to be very un-intuitive, so I wonder if I'm taking completely the wrong approach. Any suggestions would be appreciated

Like Christopher Yen likes this
Paul Mackie July 15, 2022

rule.jpg

To me it looks like there should be another field that you need to configure (maybe asking for some IQL) that would actually select the asset to be updated. But at the moment I just get a message saying no issues can be found.

Robert Wen_Cprime_
Community Champion
July 15, 2022

Out of curiosity, why do you have setting attribute values as a separate action?  I believe you can set attributes while you Create the Object.

Suggest an answer

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

Atlassian Community Events