Hello Everyone,
I have migrated a project from Cloud to a Jira Instance. However, it looks like the comments that were originally internal are now public.
I tried importing a CSV file of the issues into the project but internal comments are still becoming public.
Has anyone had any experience with this kind of situation?
Thanks in advance!
Hello,
If you import issues by a csv file, then internal comments will become public. You need to use Jira Rest API to make comments internal:
curl -u user:apikey -H
"Content-Type:application/json"
-d
'{"visibility":{"type":"role","value":"Service Desk Team"},"body":{"type":"doc","version":1, "content":[{"type":"paragraph","content":[{"text":"This request was closed.","type":"text"}]}]}}'
-X PUT https:
//url.atlassian.net/rest/api/3/issue/1943/comment/217
This rest api is for Cloud. For server it would be like this:
curl -u user:password -H
"Content-Type:application/json"
-d
'{"visibility":{"type":"role","value":"Service Desk Team"},"body":"This request was closed."}'
-X PUT https:
//url.atlassian.net/rest/api/2/issue/1943/comment/217
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexey,
Thanks for your response. Is this also the method I should use when migrating projections using the project import tool?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
by project import do you mean System->Import project? If so, then I doubt it will work at all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I have also use this method to import issues. However, internal comments also become public with this method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This isn't actually possible by default, and we're tracking a suggestion to have this implemented through: JRACLOUD-64464.
As this feature is not yet implemented, I'd advise you to add yourself as a watcher to it to receive any updates and add any comments you think are necessary and/or important to the feature request. I've also added a private comment linking this case to the feature request for our dev's review.
In addition, more information about how Atlassian implements New Features can be found in Implementation of New Features Policy.
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.