Class CommentVisibility

java.lang.Object
com.atlassian.jira.issue.fields.CommentVisibility

public class CommentVisibility extends Object
Represents the visibility of the comment to roles or groups of users.
  • Constructor Details

    • CommentVisibility

      public CommentVisibility(Map params, String paramName)
      Gets a commentLevel string out of a map and then will tell you if the provided param is a role or group level visibility param.
    • CommentVisibility

      public CommentVisibility(String commentLevel)
      Digests the passed in commentLevel string, will look something like 'role:ProjectRole' or 'group:jira-users'.
      Parameters:
      commentLevel -
  • Method Details

    • isVisibleByAll

      public Boolean isVisibleByAll()
    • isPresent

      public Boolean isPresent()
    • getRoleLevel

      public String getRoleLevel()
      Gets the role level from the commentLevel if it is of type role, null otherwise.
      Returns:
      role level
    • getGroupLevel

      public String getGroupLevel()
      Gets the group level from the commentLevel if it is of type group, null otherwise.
      Returns:
      group level
    • getCommentLevelFromLevels

      public static String getCommentLevelFromLevels(String groupLevel, Long roleLevelId)
    • getRoleLevelWithPrefix

      public static String getRoleLevelWithPrefix(String roleLevel)