Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Скрипт который вставляет комментарий, доступный для всех
- def subTasksLinks = ComponentAccessor.getIssueLinkManager().getInwardLinks(issue.id)
- subTasksLinks.each {
- def currentUser = ComponentAccessor.getJiraAuthenticationContext().getUser()
- CommentManager commentManager = ComponentAccessor.getCommentManager()
- def comment = "Поставка оборудования по заявке " + issueKey + " ожидается "
- commentManager.create(ComponentAccessor.issueManager.getIssueObject(it.sourceId), currentUser, comment, true)
- Для того чтобы комментарий был доступен только для автора есть такой
- getCommentSummary
- CommentSummary getCommentSummary
- получается что везде вместо "CommentManager" пишем "CommentSummary"
- и вместо "getCommentManager" - "getCommentSummary"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement