Control of cloning attachments - scriptrunner

I am using Script workflow function : Clones an issue and links in a workflow.

I want to avoid copying of attachments to target issue.

Following i have used checkAttachment = {attachment -> false} but attachments are copied to target issue.

Any idea about what might be wrong here. Code i am using is


issue.assigneeId = "test";
val_1 = 'Test - ' + issue.summary;
checkAttachment = {attachment -> false};
checkLink = {link -> false};

3 answers

Hi Kosta,

This should just work. Which version of SR you use ?

PS. You miss a

def val_1 = 'Test - ' + issue.summary;

Hi Thanos,

We have version 2.1.17 with JIRA 6.2.

I have tested as well the case of cloning attachments from specific user

checkAttachment = {attachment -> attachment.authorKey == 'jbloggs'}

Without success.

From logs monitoring i have not seen any related error.

Thanks for your time.

Hi Kosta,

I am afraid that this closure was introduced in a later version. I have to check if in one of the free plugin versions offers it, bear with me ...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,084 views 4 9
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