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 Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,682 views 18 21
Read article

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