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

Delete/Remove an Insight Object with Automation

I have an automation rule that creates and Insight Object when a workflow transition screen field is checked [Yes]

I would like to be able to also remove Insight objects if [No] is selected.

Looks like I'm able to edit attributes etc. with automation but not remove the object all together. Wondering if anyone has a way around this? 

1 answer

1 accepted

0 votes
Answer accepted
Mark Segall Community Leader Aug 10, 2022

Hi @Chad Jackson - There are two approaches:

  1. Don't delete objects - Instead, create a status attribute and set the status to something like INACTIVE.  Then you could go a step further and rename the object so that if you need to use the object name again in the future you can without any extra overhead.  Lastly, you would just change the IQL for any references to that object type so that inactives are no longer showing.  For example, if you don't want someone be able to select on a custom insight field, you would need to tweak the filter scope to include something like AND status != INACTIVE
  2. Make an API call - You could use the Send Web Request action to delete the object. You would need some API skills to go this route, but it's possible.

Thank you @Mark Segall,  I agree with your #1 although in this instance we want to remove the objects when they are no longer needed.  I am new to JIra and using/creating API's but will give this a shot. 

Like Mark Segall likes this

Suggest an answer

Log in or Sign up to answer
Site Admin

Atlassian Community Events