It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Insight - Asset Management

Mathieu Kasiers Oct 09, 2017

Hi,

I m using Insight for Asset Management. I m using the build-in Insight Post Function at the end of a workflow in Jira to auto create Insight objects (like described here). I m getting an error when I m trying to copy values from Date Picker, Select List (single choice) and Checkboxes custom fields.  What's the correct syntax ?

Thanks

Mathieu

 

1 answer

0 votes
Alexander Sundström Oct 09, 2017

Hi Mathieu,

It depends on what attributes in Insight you're trying to set.
I guess based on the examples mentioned, that it's a Date, Select and Boolean attribute?

What kind of errors are you getting?

Best Regards
Alexander

Mathieu Kasiers Oct 09, 2017

Hi Alexander,

The attributes in Insight are Date, Text and Boolean. 

Also User Picker (single user), is that possible ?

Error messages, I will send you later

Thanks

Mat

Alexander Sundström Oct 10, 2017

Hi Mathieu,

It's possible to set all attribute values in Insight using our API.

In the code at

objectAttributeBeans.add(objectAttributeBeanFactory.createObjectAttributeBeanForObject

As the third parameter, what you need to pass  is in the format of String... , like for the boolean it needs to be "true", for a date it depends on your settings in JIRA, but as in my environment it's "10/Oct/17", and for the Select, the same, like "Value 1".

It's also possible to be multiple values, like "Value 1", "Value 2" etc.

But as mentioned, I think the errors you get will explain more in detail what exactly is causing the problem.

Let us know if the above helped you solve the problem.

Best Regards
Alexander

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar alert! An IT Admin's Guide to Securing Collaboration at Scale

Hello, Atlassian Community! My name is Dave Meyer and I'm a Principal Product Manager at Atlassian. I wanted to give this community a heads up about an upcoming Webinar that might be of interest...

188 views 2 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you