Need to add comment after creation of ticket 15 days

Lakshmi Yaganti June 8, 2021

Hi ,

 

We having script runner plugin only, we don't have automation for jira plugin , so by using script runner plugin , Add comments to open ticket automatically after 15 days of creation.

 

I used this behaviour 

def OE = Created.getValue();
CommentManager commentMgr = ComponentAccessor.getCommentManager()

if (OE >-1d){

commentMgr.setFormValue("This ticket is opend from 2 weekss back ago please close this ticket")
}

Please share me code , if you have

0 answers

Suggest an answer

Log in or Sign up to answer