Copy Comments from Sub-Tasks to Parent via SIL?

Jh
Contributor
August 12, 2021

Since Jira does not allow sub-tasks to have customer request types, as a workaround to having the customer see comments being made on the sub-tasks, is it possible to copy comments from sub-tasks to the parent issue via SIL script?

1 answer

0 votes
said kouzibry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2021

A simple solution would be the following :

string [] stComment;
string [] ids=getAllCommentIds(key);
for(string commentId in ids){
stComment=getCommentById(id);
addComment(parent, stComment[2], stComment[1]);
}

However this is not recommended as there is no check on whether the comment has been  copied before or not and no security is being copied.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.15.1
TAGS
AUG Leaders

Atlassian Community Events