Script Runner Clone issue Additional issue actions

Hello,

I am using Clone issue with links script. Can I reference the original issue and its fields in Additional issue actions field? Is there any way to do this, and how?

 

1 answer

This widget could not be displayed.

Hi,

Yes you can, have a look at the examples under the Additional issue actions field. You can retrieve the summary of the original issue with

sourceIssue.summary

Regards,

Geert

 

Thank you for answering. I actually tried what you suggest already. Unfortunately, it doesn't work for me. I get: "No such property: sourceIssue for class: Script1'" in log. I am using JIRA 6.3.12 and Script Runner 3.0.6

So what is this class Script1? Are you using the built-in script or did you create your own? Because I was assuming that you were using the built-in script.

Yes, I am using built-in postfunction, 'Clones an issue and links'. I am not sure what Script1 is, could it be class generated from Additional issue actions block? As I change Additional issue actions, Script1 turns to Script2, Script3 and so on.

Hi, it seems you are using this in exactly the same way as I am. The only difference is that I run JIRA 6.3.8, but I do not think that makes a difference. Here it works well. I cannot say why it does not in your case. I hope someone else can help.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

158 views 2 0
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