Insight: How to create object with Attribute Types: Status & Project in Groovy

I execute a groovy script from JIRA Service desk and want to create an object in Insight based on information provided in Customer fields. I am able to get it to work for Default, User and Object attributes types, but are uanble to workout how to set the Status and Project attributes.

Looking for any groovy examples or information about the relationship of these attribute types

1 answer



From Insight 5 we have provided an easier way to update attributes of different types with the ObjectAttributeBeanFactory. It will handle the creation of the object attribute bean with all values added to it correctly. It will not store the attribute so after creation you will have to add it to an object and store it. 

An example can be found here




Hi @Tanya Tranter, @Ola Melin,

In my scenario I have a PC object with attribute of type object referencing to Employee object type. I want the user to choose the PC and Employee in their respective custom fields and the post function will put the value of the Employee in the attribute of PC. I have used the example above to do it with attributes of type text and it works. How to do it with Object types.



Does anyone have a working example of this? Trying to get something working and having a hard time. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


251 views 0 6
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