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.
In Jira Cloud, it's not possible to assign the tissue using user name. You need to use accountId of the user. Please refer the below REST API doc.
When you export users into CSV file from your Cloud site, it'll have accountId for all the users.
Thank you. Will try this out.
Can you also suggest me on how to convert some of the complex groovy script from Jira Server to JIRA cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.