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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

Modyfing Insight / Assets values based on a Jira like Automation

Hi community, 

we have an objecttype called "Contract" in our insight database. There are several attributes like "TerminationDate" and "Status". We would like to automate our infrastructure to regularily check all objects from type "Contract" and compare todays date with the attribute "TerminationDate". If "TerminationDate" is in the past, status should be switched to "Inactive" from whatever current state it was.

I thought to operate with jira automation and use "smart values" to get access to those insight information, but I've been thinking for a long time about the best way to do this and haven't found a way to do it at all.
I also tried via ScriptRunner to build a script in which I cppy & paste existing code snippets but found nothing suitable.
Do you have any idea how to solve this?

1 answer

1 vote

You should be able to do this with the native Insight Automation.

Create a new automation rule and in "When", select "Scheduled Event".

Specify a CRON expression to execute daily or weekly or whenever.

In the IQL Condition, add something like:

objectType=Contract and "TerminationDate" < startOfDay() and Status != Inactive

The the "Then" block, add an "Attribute Value" action and specify that you want to change the Status to Inactive.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events