Scriptrunner fails clone issue

Hi All,

Hope someone can help me.

I've just installed Adaptavists Scriptrunner on my Cloud instance for some automation. Right now I'm trying to clone an issue as a Post function on transition. I'm only using the predefined script that Scriptrunner provides for this, with no customization yet.

It works fine some of the time, but it seems as if it fails the cloning when i've logged time on the issue.

Scenario that fails: 

  1. I create an issue in project A (Service Desk project)
  2. I log time on this issue
  3. I transition it and log time once more as part of my validation on this transition.
  4. Script fails with message 
    timetracking:Setting the Time Spent directly is not supported.

Scenario that seems to work

  1. I create an issue in project A
  2. I transition it and log time during the transition
  3. Issue is cloned to project B (Software project)
    1. Time spent is not copied though. I guess that's because the work log hasn't been added before the clone-script is executed

Now, the message is pretty clear, but where do I go from here? Is Scriptrunner really that limited? That I can't use it if my project is using time tracking?

Please help me!

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,777 views 11 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot