Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to Import Internal Comments?

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!

2 answers

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

Hi Alexey,

Thanks for your response. Is this also the method I should use when migrating projections using the project import tool?

Thanks!

by project import do you mean System->Import project? If so, then I doubt it will work at all.

Yes, I have also use this method to import issues. However, internal comments also become public with this method.

0 votes
K_ Yamamoto Atlassian Team Jan 06, 2022

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.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you