Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to automatically assign a task to the previous assignee when the reporter wrote a comment? Edited


When we ask a question to the author in the comments of a task, we assign it to the author and change the status to "Hold". If the author writes a response, we need the status of the task to automatically change to "In Progress" and the task to be assigned to the previous assignee.
How can I configure automation using a sil-script?
We already have a script configured. But how do I configure the script to run when a comment is posted to a task?

JComment cmt = getLastComment(key);
string rep = reporter;
string authorComm=cmt["author"];
   string [] h = fieldHistory(key, "assignee");
   string a;
   if(isNotNull(h[1])) {
      a = h[1];
   else {
      a = h[3];
   assignee = a;

2 answers

0 votes

I Think it's Jira service management kind of activity,

May be you can achieve this by using "Automation" or "Scripting"

0 votes
Tansu Akdeniz Community Leader Dec 21, 2020

Hi @Helen Porter 

As @Kagithala Babu Anvesh suggested, you can use automation.

  • If you have JMWE, JSU etc, go to workflow and find the transition to "On Hold" status. Copy current user to newly created customfield (user picker type). So that, issue will store the action user in customfield.
  • Go to project settings -> automation. When issue commented -> if initiator is reporter -> If status is "On Hold" -> transition issue to "In Progress". 
  • You can either set assignee to previous user in automation or in "On Hold" to "In Progress" transition post-function (by copying the field).

As I understand it, there is automation in service desk projects. We have a software project. I did not find automation in it.
In addition, we need to run the script when adding a comment, but not during the transition. Tried it via SIL Listeners, but nothing worked. Can I run the script when adding a comment? In theory, this is considered a task update and should have worked.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,142 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you