Script workflow function : Clones an issue and link not working

I am on 6.4.5 and I am expecting some issues to clone an issue.

It used to work last week, but now doesn't work

Conditions:

(cfValues['Clone to']?.value == 'DPOP')

 

Additional issue actions:

import com.atlassian.jira.issue.Issue;

import com.atlassian.jira.ComponentManager;

issue.reporterId = ComponentManager.getInstance().getJiraAuthenticationContext().getUser().getName();

 

I put a target project: to the project i want, and it should work. Any ideas?

 

 

3 answers

0 vote

What changed between last week and this week? > I put a target project: to the project i want, and it should work. Can you explain more what you mean by this.

Hi Jordi,

I have just tried replicating this issue on my JIRA 6.4 instance running Script Runner version 4.1.3.7 and been unable to replicate this issue.  When I add your code to the first post function in the list on a transition of the Worklfow then it Clones and Links the issue. I attach a screenshot of how i configured this below.

If you are still experiencing an error can you please post the error from the logs when this happens along with what version of Script Runner you are running.

Config.png

Thanks

Kristian

Hi all,

 

I have JIRA 6.4.7 and Script Runner 3.1.4.

 

I tried Kristian's approach and still not creating the linked issue.

 

Any clue how to solve this?

 

tks

Antonio

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

178 views 0 4
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