Hi All,
We are migrating from JIRA server to JIRA cloud. We have some custom groovy script which are executed as post functions, those scripts will not run in JIRA cloud.
I have tried using the REST API to change the assignee ID. But I am unable to change it.
Below is the rest API code:
def result = put("/rest/api/2/issue/${issueKey}")
.header('Content-Type', 'application/json')
.body([
fields: [
assignee : [
displayName: 'anusha'
]
]
])
.asString()
Its just setting the assignee ID to Unassigned.
I am also facing trouble with importing some of the classes required to run a groovy script.
Ex:
import com.atlassian.jira.component.ComponentAccessor
Gives an error: unable to resolve.
Needed some guidance on how to proceed here. We have many groovy scripts which have to be migrated.