Forums

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

How to update Insight Object Attribute when linked Jira Issue Field Duedate is exceeded

Marc Drescher June 9, 2021

Hello all,

we are trying to update the field of an Insight object (status field) when the due date of an issue associated with the object is passed.

What are the possibilities to do this? Does anyone have experience with this, which option is best for this as well?

Software and Addons:
Jira Server (Core, Service Management, Software).
Insight
Jira Automation

I hope someone can help me and thank you in advance for this! :)

1 answer

1 accepted

0 votes
Answer accepted
PD Sheehan
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.
June 9, 2021

I think you can do this all within insight automation.

  • Go to your insight object schema configuration page and navigate to the Automation tab.
  • Create a new rule
  • Give it a name, description and some user with permission to change attributes
  • Add a trigger
    • Trigger = Scheduled Event
    • Condition = objectType= XXX and object Having connectedTickets(duedate < now() and resolution is empty) and Status != YYY
      • Where XXX is the object type you want to change
      • And YYY is the Status that you will change to (so you don't process them again)
    • Cron Expression: Some regular interval. Perhaps daily
  • Add an action
    • Action = Attribute Value
    • Attribute Name = Status
    • Value = YYY

Save the rule and wait for the specified interval to happen and watch your insight_automation.log

Marc Drescher June 15, 2021

Thank you a lot! It worked. :)

Jenny Severin
Contributor
February 7, 2022

@PD Sheehan How can this same automation rule be generated in the Cloud?

I do not see an Automation Tab in the Object Schema Configuration for Cloud.

PD Sheehan
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.
February 7, 2022

Sorry @Jenny Severin I have no experience with cloud.

Jenny Severin
Contributor
February 7, 2022

Thanks for the reply, @PD Sheehan 

Suggest an answer

Log in or Sign up to answer