Hi All,
Currently I'm trying to import existing tickets from our in-house build ticketing system into Atlassian ServiceDesk.
Got it sort of working users/organizations seem to work through the REST API.
For the issues and comments am using the Jira Issue Importer (JIM or something they called it I think) since we need to be able to import Issues and customers as other users and from a historic date, which the rest API of the servicedesk doesn't seem to support.
This in basis seems to work relatively well, am able to import issues, attachments and comments. What I'm not able to do is set if the comment should be a "customer reply" or an internal comment.
For some odd reason if the comment was placed by me originally its a "customer reply" but if its somebody else its an internal one.
So my question is, how would I configure if its a customer reply or a internal comment from within the JSON (also tried string based values, but otherwise this message might get way to long)?
Thanks in advance!
Have tried multiple variants like:
{code:json}
{
"projects": [
{
"{snip}Let's assume this is all fine{/snip}",
"issues": [
{
"priority": "High",
"description": "Best ticket ever",
"status": "DONE",
"reporter": "MiniMe",
"watchers": [
"WhatAboutYou",
],
"externalId": 1,
"issueType": "Submit a request or incident",
"resolution": "DONE",
"created": "somedate",
"summary": "Might possibly be the worst ticket in the history of tickets ever",
"history": [],
"attachments": [],
"comments": [
{
"body": "First comment!",
"properties": {
"key": "sd.public.comment",
"value": {
"internal": false
}
},
"created": "2020-10-13T12:37:06+02:00",
"author": "5bc4b67938d0f87d5dfc5f6f"
},
]
}
{code}
or
{code:json}
{
"projects": [
{
"{snip}Let's assume this is all fine{/snip}",
"issues": [
{
"priority": "High",
"description": "Best ticket ever",
"status": "DONE",
"reporter": "MiniMe",
"watchers": [
"WhatAboutYou",
],
"externalId": 1,
"issueType": "Submit a request or incident",
"resolution": "DONE",
"created": "somedate",
"summary": "Might possibly be the worst ticket in the history of tickets ever",
"history": [],
"attachments": [],
"comments": [
{
"body": "First comment!",
"sd.public.comment": false,
"created": "2020-10-13T12:37:06+02:00",
"author": "5bc4b67938d0f87d5dfc5f6f"
},
]
}
{code}
or
{code:json}
{
"projects": [
{
"{snip}Let's assume this is all fine{/snip}",
"issues": [
{
"priority": "High",
"description": "Best ticket ever",
"status": "DONE",
"reporter": "MiniMe",
"watchers": [
"WhatAboutYou",
],
"externalId": 1,
"issueType": "Submit a request or incident",
"resolution": "DONE",
"created": "somedate",
"summary": "Might possibly be the worst ticket in the history of tickets ever",
"history": [],
"attachments": [],
"comments": [
{
"body": "First comment!",
"public": false,
"created": "2020-10-13T12:37:06+02:00",
"author": "5bc4b67938d0f87d5dfc5f6f"
},
]
}
{code}