Missed Team ’24? Catch up on announcements here.

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

Automation rule with Insight product

Wolff July 6, 2022

As a user i like to create a automation rule when a customer reports a issue, we automatically attach his product to it. 

The product is coming from Insight and is called 
"Loyalty Cloud" with number  ITSM-82 

Why i get a error and its not automatically filled in this field?

How do i set it up correctly?

2022-07-06_15-33-19.png

2 answers

1 accepted

0 votes
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 7, 2022

Hi @Wolff - Can you please share a screenshot of the Lookup Objects component in your rule as well as a screen shot of an audit log entry?

Wolff July 7, 2022

Hi Mark,

 

Thanks for reaching out,

See here:

2022-07-08_08-04-41.png

 

Idea is very simple:

When customer X adds a Jira Issue. 
Then we automate, Client, Account and Product. 

This is one of the products..

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2022

Apologies if I wasn't clear in my request.  It would help to see a screen shot of the Lookup Objects action in your automation rule as well as a screen shot from the rule's audit log of the last run.  This will help us get a better look at the rule's configuration and insight into how the rule is executing.

Wolff July 8, 2022

Do you mean this?

 

2022-07-08_15-44-07.png

 

jiraautomation.png

 

2022-07-08_15-42-24.png

Wolff July 8, 2022

The rule is'nt running. 
When it does i get error, but no details on the error.

What is wrong or what i need to fix. 
Thats why im looking for help here..

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2022

Thanks for the additional screenshots. I do see one issue.  In your Lookup Object, you should have quotes.  Your IQL should look like this:

Name LIKE "Loyalty Cloud"
Wolff July 10, 2022

Ok thanks, I will try and let you know if this is the solution.

Wolff July 13, 2022

@Mark Segall 

I have changed it like you set above.

But i still get an error on the rule and the product isn't filled automatically in the issue.

 

I also tried to change the Products on Issue field. 

And then validate the Syntax but then i get  a error

2022-07-13_11-16-30.png

2022-07-13_10-31-35.png2022-07-13_11-14-55.png

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 13, 2022

A couple things come to mind... Since you're trying to get this from your lookup objects, let's focus there:

  1. IQL can sometimes be fickle with capitalization.  I'm pretty sure name is actually Name by default (unless it was changed in your instance)
  2. As with trying to call the name directly, you should have quotes around the smart value:
    1. Name like "{{lookupObjects.ITSM.Name}}"

If that doesn't work, I would add a Log Action immediately following your Lookup Objects action with {{lookupObjects.ITSM.Name}} just to verify Lookup Objects is returning anything.

Wolff July 13, 2022

Ok thanks will try both.

Keep you post-it  

 


Wolff July 20, 2022

Hi @Mark Segall 

 

I have tried it, but i keep having errors;

2022-07-20_10-48-04.png

 

See here the setup of the automation:

2022-07-20_10-49-36.png2022-07-20_10-49-45.png2022-07-20_10-49-54.png

Hope we can find a solution

adding automatically a Product from Insight (Assets) 

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 20, 2022

Taking a step back on this...

Your lookupObjects is specifically looking for Name like "Loyalty Cloud" and then you're doing a second query against that in your edit field function.  So, is the expectation that the rule will always assign the Loyalty Cloud object to the issue once your condition is met?  If so, you don't need the lookup Objects action.  You would just add this to your Product field in the Edit Issues Action:

Name Like "Loyalty Cloud"
Wolff July 20, 2022

Amen! Thank you @Mark Segall 


It worked :D That is really good. 

Like Mark Segall likes this
0 votes
Wolff July 20, 2022

Solution is idd

 

Name Like "Loyalty Cloud"

Suggest an answer

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

Atlassian Community Events