Ugh! My brain is mush and I deleted the automation that did this!
I'm trying to remember how to piece this together.
I have specific JSM issue types that have a custom field that references an Insight object. On certain transitions, I'd like the Jira Automation to update that object's Status field.
I seem to remember that I have to have an IQL Query condition. And that you can use the Edit Object operation to update the Object. But everything else is fuzzy.
HELP!
Automation doesn't allow you to edit a specific object, so you would have to use the REST API to do it, something like this:
The object ID is being used in the call to update the status attribute in this case.
I seem to remember using the "Edit Object" action to update attributes in the object.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Edit Object that is in automation currently is for old Insight, at least based on my own research and the information I got from the product team.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm almost there.
The if condition passes, but I get a 401 error on the Send Web Request.
I created the API token, appended my email to it and base64 encoded it and added it as the value for Authorization along with the word "Basic".
Am I missing something?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you also including the Accept application/json header?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think I am. I'm following the following: https://confluence.atlassian.com/jirakb/update-insight-object-status-to-expired-using-automation-1072219008.html
Where do I include that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here's what I see when I try to validate the command
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like you are missing the object ID, your URL should look something like this:
https://api.atlassian.com/jsm/insight/workspace/<workplaceID>/v1/object/{{objectID}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, somehow the validation is missing that objectID. Here's what I have for the URL:
https://api.atlassian.com/jsm/insight/workspace/<workspaceID>/v1/object/{{AssetList.key}}
Anyway, I'm off to debug using Postman. Any tips?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Found it. Missing a comma in the custom body data.
Thanks for helping me out!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.