REST API: Create Object with References Example

Would it be possible to provide here or via the REST API documentation 

https://documentation.riada.se/display/ICV50/Objects+-+REST

an example of creating an object which includes a referencedObject attribute? 

I'm not overly sure what's required and haven't had luck with my tests. 

1 answer

1 accepted

This widget could not be displayed.

Hi Chad,

This is an example where I set an object referenced:

{
  "objectTypeId": 10834,
  "attributes": [
    {
      "objectTypeAttributeId": 90041,
      "objectAttributeValues": [
        {
          "value": "Test object"
        }
      ]
    },
    {
      "objectTypeAttributeId": 94875,
      "objectAttributeValues": [
        {
          "value": "IN-247"
        }
      ]
    }
  ]
}

What you have to set as the value is the KEY for the object.

Best Regards
Alexander

Thanks! Worked like a charm. 

Great :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

491 views 3 18
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