Forums

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

Change an Insight object status from a Jira post function

Mariano Redondo
Contributor
December 17, 2021

I have an Insight custom field on a Service Management request type, and after a workflow transition I want to change a value of an attribute of the object.

I´m using then the "Set the value of an object attribute with a predefined value" post function, which works perfectly for attribute types like text or select, but I can not get it to work for an Status type attribute:

 

Screen 3.JPG

Checked that the value I´m trying to set exists as a status for that object type on Insight.

Any ideas?

 

2 answers

1 accepted

0 votes
Answer accepted
Mariano Redondo
Contributor
December 29, 2021

The update action works propery, the issue was a validation groovy code that was not working as expected. 

2 votes
Fabian Lim
Community Champion
December 17, 2021

Hi @Mariano Redondo

If the above doesn't work, you may have to use the jmwe plugin and run a groovy script.  Take a look at a similar post here: https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Post-function-script-to-update-Insight-object-with-values-from/td-p/768424

Regards 

Mariano Redondo
Contributor
December 21, 2021

Hi Fabian. Thanks for your answer. We have the jmwe plugin, although Insight also has a post function to execute groovy code.

I´ll take a closer look at the code on the post you mention, in the meantime though I´ll raise a ticket to Atlassian support as I think there must be a way to update an status without the need of developing a function. 

Regards.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events