Hi,
I am using the code below but I am having a hard time finding understanding how JIRA is separating comments by internal vs shared. Any suggestions?
/**
* Field name: LastComment
* Template: Text Field (multi-line)
*
* Description:
* Returns the last comment on an issue.
*
*/
import com.atlassian.jira.component.ComponentAccessor
// get the latest comment
def commentManager = ComponentAccessor.getCommentManager()
def comment = commentManager.getLastComment(issue)
// check to see if comments exist - return comment body if so
if (comment != null) {
return comment.body
}
return null
Hi @Joseph Hortch, you can get some insights into that through the Adaptavist Library script below. Have a look.
https://library.adaptavist.com/entity/get-the-visibility-of-new-comments-in-jira-service-desk
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.