Hi I am unable to add an asset object custom field during ticket creation. I am sending the payload as following and am using the /rest/api/2/issue endpoint. Although after ticket creation I am able to select one option from the custom field dropdown and set it in the UI. In the UI I don't see it in the create ticket modal. Is that the reason ? Also there are not errors, JIRA response is fine, but the customfield array is empty. Thanks
{
"fields": {
"project":
{
"key": "TEST"
},
"summary": "Test summary",
"description": "Creating of an issue using project keys and issue type names using the REST API",
"issuetype": {
"name": "Task"
},
"customfield_10100" : [{"key" : "TEST-1"}],
"customfield_10200" : [{"key" : "TEST-1"}, {"key" : "TEST-2"}]
}
}
Try to pass this payload for Assets Custom Field
"customfield_XXXX": [
{
"workspaceId": "XXXXX",
"Id": "WORKSPACEID:OBJECTID_NUMBER",
"objectId": "OBJECTID"
}
],
How to get WorkspaceID:
Access the URL: https://your_site/rest/servicedeskapi/insight/workspace;
Collect the ID present in workspaceID
How to get ObjectID:
Access the Assets and go to the desired object. The ObjectID is the number that follows the object key in assets.
I know it's hard :(
Hope this helps you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.