I am trying to update an Insight object using the Insight REST api. I tested it in Postman using a GET on this URL:
https://jira.myCompany.net/rest/insight/1.0/object/CM-600
That gave me back the details for that object. (So I know I am connecting correctly.)
I then changed to a PUT call with this body:
{
"attributes": [{
"objectTypeAttributeId" : 174,
"objectAttributeValues" : [{
"value" : "Updated Name",
}]
}]
}
174 is the value in the Id column of the Name attribute for the object type that is CM-600. (Found in the Attributes view of the Object Type using the normal Insight UI.)
When I run this put, I get the following error:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<errorCollection>
<errorMessages>Something went wrong. Contact administrator</errorMessages>
<errors/>
</errorCollection>
First, "Something went wrong. Contact administrator" is a very poor error message if you happen to be the administrator.
I tried to check the logs. Nothing about this was in any of the Insight logs. I checked the atlassian-jira.log file and it had an exception and stack trace. But the message was very unhelpful:
2018-10-04 16:35:41,666 http-nio-8080-exec-21 ERROR 18773 995x69293x1 mi1l30 <<IP Address Removed the paste>>,<<Another IP Removed>> /rest/insight/1.0/object/CM-600 [c.r.j.p.i.c.w.a.r.exception.mapper.DefaultMapper] Unexpected exception was thrown while processing the request javax.ws.rs.WebApplicationException
I have two questions:
Hi Stephen,
Can you paste the full log message for me please ?
Cheers!
Nader
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.