Change object value when updated by Discovery

I was thinking about a groovy automation script, that would check which user changed a value and if it was the automation user, it would set the value to the field. I don't see an event object that would be passed to a script. Do you have an idea how to implement this? Maybe there is easier way. :)

2 answers

Hi Marcin,

that is not a discovery released question.

So an colleague will answer to it.

// Christian

Hi :) When can I expect an answer? :)

0 vote

Hi Marcin,

This is doable, but it will require some groovy scripting. I would recommend you to take a look at our documentation where we have some example of groovy script, and also our API documentation on what is possible to do.

As an example, in the ObjectFacadeImpl, there is a method where you can get all history of an object by passing the objects id.

For examples of groovy scripts, take a look at https://documentation.riada.se/insight/latest/insight-for-developers/groovy-scripting/groovy-script-examples

Also, we have partners that can help with the configuration and setup of both Insight and JIRA, if that would be interesting, let us know.

Best Regards
Alexander

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

863 views 2 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you