You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
When a customer is not added to 'Request Participants' field in a issue, if the customer emails to an email notification of the issue. The reply will be added as an internal comment with the tag 'NO ACCESS TO REQUEST'.
If we want to change the comment property from internal to 'Share with Customer' with Scriptrunner script, the comment property updated successfully but the INTERNAL comment's tag still there and it doesn't share with customer.
import com.atlassian.jira.event.type.EventDispatchOption
import com.atlassian.jira.bc.issue.comment.property.CommentPropertyService
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.comments.Comment
import com.atlassian.jira.util.json.JSONObject
import com.atlassian.jira.user.ApplicationUser
import com.atlassian.jira.issue.Issue
import org.apache.log4j.Logger
def logger = Logger.getLogger("Comment property change")
final SD_PUBLIC_COMMENT = "sd.public.comment"
def commentPropertyService = ComponentAccessor.getComponent(CommentPropertyService)
def commentManager = ComponentAccessor.getCommentManager()
def issueManager = ComponentAccessor.getIssueManager()
Issue issueObject = issueManager.getIssueObject("Temp-12345")
def comment = commentManager.getLastComment(issueObject)
ApplicationUser appUser = issueObject.getReporterUser()
def authorEmail = comment.getAuthorApplicationUser().getEmailAddress()
def commentBody = comment.getBody()
def commentProperty = commentPropertyService.getProperty(appUser, comment.id, SD_PUBLIC_COMMENT).getEntityProperty()
logger.debug ("Comment Property: ${commentProperty.get()}")
if (comment) {
def properties = [(SD_PUBLIC_COMMENT): new JSONObject(["internal", true])]
commentManager.update(comment, properties, true)
logger.debug("Update End")
}
Log output:
Property value before updating: key=sd.public.comment,value={"internal":true}
Property value before updating : key=sd.public.comment,value={} and internal property false
Comment does have has the Internal tag and the comment is not available in customer portal. Do you think it is a bug?
Thank you much for your thought and help.
Take a look at the following REST API call to obtain comment's visibility properties (Internal/Public)
Keep in mind that REST API v3 is not yet available for the Data Center/Server envs.
You may want to contact Atlassian Support (https://support.atlassian.com) for further support.
Best, Joseph Chung Yin
Jira/JSM Functional Lead, Global Technology Applications Team
Viasat Inc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are using JSM in your Data Center/Server envs, you should be licensed already. You definitely can just lookup your SEN to create the support case with Atlassian Support team.
Best, Joseph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Joseph Chung YinThank you. I submitted a ticket to Atlassian Support team. Will update you all once I have an update from them.
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.