Hey there,
I just have an issue type that goes with an Insight object under a customfield.
However, i can not manage to create this issues neither using Jira for Python lib or Jira REST API directly.
I went over these two topics below, and none of the solutions worked for me
for the payload as
{
"fields": {
"project":{"key":"DEMO1"},
"summary": "Create JIssue test",
"description": "Create Jissue test",
"issuetype": {
"id": "10213"
},
"customfield_10424" : [{
"workspaceId":{workspace_id},
"id":"446",
"objectId": "446"
}]
}
}
i just got a server error
{"errorMessages":["Internal server error"],"errors":{}}
if i replace the insight object formatting, and pass only the key, the ticket is created, but with the customfield as empty.
{
"fields": {
"project":{"key":"DEMO1"},
"summary": "Create JIssue test",
"description": "Create Jissue test",
"issuetype": {
"id": "10213"
},
"customfield_10424" : [{
"key":"CUS-445"
}]
}
}
This is how a manually issue, with Insight object properly set, looks like for the customfield
if i just try to update that issue by code, using:
issue.update(fields={'customfield_10424':[{
"key":"CUS-175"
}]})
the customfield_10424 will go empty.
I would be pleased if someone could help me figure this out, or maybe explore other alternatives, Thanks!
After going deeper on that, just found out the syntax that worked for me.
customfield_10424=[{
"id":"{workspaceId}:445",
}]
idk why this is not well document over jira docs, since there are similar scenarios and different syntaxes.
Hi Andre, I just have a question, what is "workspaceid" is it the name of your object ?
Can you confirm as I'm switching form server version to Cloud and the call api is not possible with the old method with the key.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried with that
"customfield_10302": [
{
"id": "{workspaceid}:19403"
}
]
and get
{
"errorMessages": [],
"errors": {
"customfield_10302": "Validation failed for Insight object"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just the solution on how to find the workspaceid, for those looking here and that don't know just make a call to :
'https://{yourcompany}.atlassian.net/rest/servicedeskapi/insight/workspace'
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.