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,559,133
Community Members
 
Community Events
184
Community Groups

Insight Automation Groovy script to check object created or updated

I'm trying to use Insight automation to trigger a groovy script to update an external database with object attribute values. Need to check if the object in action is created or updated and update the database accordingly. Is there any way to check this with script?

2 answers

1 accepted

1 vote
Answer accepted
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 14, 2020

Hi @harilal.poyil ,

in Insight automation there are "Object created" and "Object updated" triggers. I would recommend you to use them to distinguish, if the object was created or updated, ie not to do it in script, but create two separate scripts specific for each situation.

Yes. Thank you.

0 votes
Steven LS
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.
Oct 11, 2022

@Hana Kučerová  at the start of the automation there the trigger to check if something is created, but how can you check which object it was.  In an automation rule I setup that triggers a for IQL branch and then it creates a variable, but it is looping through all the records in insight, what do you need to setup to tell the automation to only work with the newly created insight object?

Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 13, 2022

Hi @Steven LS ,


I’m sorry, but I don’t understand your use case. Would you please create a new question with better description and screenshot? Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events