Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Script workflow function : Clones an issue and links in a workflow - without attachments

Daniel Kim April 2, 2018

JIRA server: 7.3.8

Adaptavist ScriptRunner for JIRA: 5.3.9

 

Using ScriptRunner workflow function to clone/link an issue. I have below codes in [Additional issue actions] to avoid attachments to be cloned. however it doesn't seem to be working. 

Anything I can try? 

 

checkAttachment = {attachment -> false};

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.MutableIssue

def user = ComponentAccessor.getUserManager().getUserByName('jeff.fulton')
issue.setAssignee(user)

 

0 answers

Suggest an answer

Log in or Sign up to answer