Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,467,368
Community Members
 
Community Events
177
Community Groups

How to get Comment field value to assign using RESTAPI to differentiate between external & Internal.

Hi Team,

 

My code is working in the cloud environment.

Actually, "Share with Customer" & Internal Comments to be separated and to be mapped with Additional Comments & worknotes in SNOW.

Please Help.

 

My Code working in Cloud environment.

PFB : 

var isComment = issueJson.fields.comment.comments[issueJson.fields.comment.comments.length - 1].jsdPublic;
var comm = issueJson.fields.comment.comments[issueJson.fields.comment.comments.length - 1].body.content[0].content[0].text.toString();
if (grInc.comments.getJournalEntry(-1).toString().split('\n')[1].trim() != comm && isComment)
grInc.comments = comm;     //(External Comments Mapping)
else if (grInc.work_notes.getJournalEntry(-1).toString().split('\n')[1].trim() != comm && !isComment) {
grInc.work_notes = comm;    //(Internal comments Mapping)

 

 

Please help on this and do needful favour..

 

Thanks

SRI

 

1 answer

0 votes
Gaurav Community Leader Aug 01, 2021

Hello @sriharsha m 

In Jira Service Management, the APIs can help us to post the comments specific to customers or keep those internal.

The tag of this is 'public' which is boolean and can be set as either 'true' or 'false' which will comment is shared with the customer or otherwise.

The API documentation from Atlassian is available here.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events