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.
Can you please share your solution in detail?
I have an open question https://community.atlassian.com/forums/Jira-questions/Adding-objects-to-a-custom-Jira-Asset-Object-type-through-JIra/qaq-p/3027525
You can also respond to this.
Thank you.
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.