Hi,
My script was ran in 6.x version after upgrading to 7.2.6 then not working. This use to send attachment when issue resolve.
Here is the code that I used.
////Values getting from workflow transition screen c.
def changeItems = transientVars["changeItems"]
def uploadChanges = changeItems.findAll { item -> item.getField() == "Attachment" && item.getFieldType() == "jira" }
uploadChanges.each { uploadChange ->
def Attachment attachment = attachmentManager.getAttachment(uploadChange.getTo()?.toLong())Getting errors as below
- groovy.lang.MissingPropertyException: No such property: transientVars for class: com.custom.Script607 at com.custom.Script607.run(Script607.groovy:160)
2. item.getField() - Cannot find matching method. please check if the declared type is right and if the method exist
3. item.getFieldType() - Cannot find matching method. please check if the declared type is right and if the method exist
4. attachmentManager.getAttachment(uploadChange.getTo()?.toLong()) Same error as 2,3
Can anyone suggest me what is the change in new JIRA version 7.2 ? How I can fix this?