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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,603
Community Members
 
Community Events
176
Community Groups

AQL Condition on Automation

Is there a way to enable this? We wanted to fetch the user data from asset (Employee Directory) into our Automation. It seems that we can't query and object and add asset field

 

Screen Shot 2023-01-16 at 7.42.12 PM.pngScreen Shot 2023-01-16 at 7.42.25 PM.png

2 answers

0 votes
Dirk Ronsmans Community Leader Jan 16, 2023

Hey @Bryan Tito ,

The Automation is not looking for a Asset but for an Asset field meaning it will take the issue that it was triggered on and then use the data from the specific Asset field.

What are you using as the trigger for your Automation?

If you wish to simply query the object Schema, you can do that using a Scheduled trigger OR you can use the Lookup Objects action which will allow you to run any AQL and use the results of that AQL further down the automation in a smartvalue.

Otherwise you'll have to specific a field that is on the issue on which it will fetch the data

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-objects

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/#Lookup-objects

Hi @Dirk Ronsmans thank you for checking on this. 

What are you using as the trigger for your Automation?

- We used the Field value changed of a customfield that we have created. When this field is updated by an agent it will add or remove him/her from a group.

 

Screen Shot 2023-01-16 at 10.31.41 PM.png

Also when we add an AQL the mapping it disappears.

Screen Shot 2023-01-16 at 10.33.39 PM.png

Dirk Ronsmans Community Leader Jan 16, 2023

Can you elaborate a bit on the automation use case itself?

So,

  1. Field "Turn on Autoassign?" is updated
  2. look in Assets for that person?
  3. If value of the field = Yes -> Do something (and what exactly?)
  4. If value of the field = No -> Do something else? (and what exactly?)

is this pretty much what you are trying to do?

Surething,

 

  1. Field "Turn on Autoassign?" is updated
  2. look in Assets for that person? - It will look for an attribute for on agent/user. Example: location.
  3. If value of the field = Yes -> Do something (and what exactly?) - the agent will be added to the group that will do a round robin assigning of ticket on that group.
  4. If value of the field = No -> Do something else? (and what exactly?) - will remove the agent from the group.

 

Thanks you,

0 votes

Hi @Bryan Tito 

Why won't it let you query them? Will it not let you enter anything into the Assets Field / Query boxes?

For Assets Field, this is a search box, not a drop-down menu. It will show results as you begin typing into it.

For help with AQL, see this help page.

Ste

Hi @Stephen Wright _Elabor8_ thank you for checking on this.

On the Query tab, it won't let me type on the text box, while on the Assets nothing comes up on it even though we have already have created some Assets.

Hi @Bryan Tito 

And you are creating the Objects rule at a Global level, as the purple note suggests in your screenshot?

Ste

Helo @Stephen Wright _Elabor8_ we have tried it via Global Automation but it seems it is the same.

Please see screenshot.

Screen Shot 2023-01-16 at 10.27.38 PM.png

Suggest an answer

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

Atlassian Community Events