I want to rename issue type scheme to a given "String value" using groovy.
is it possible , if Yes how ?
Thanks in advance ..!!
Regards,
Sumit
Its relatively straight-forward. Try something like this for JIRA 6:
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.fields.config.FieldConfigScheme; itsm = ComponentAccessor.issueTypeSchemeManager; for (scheme in itsm.allSchemes) { // 1. get the scheme we want to edit if (scheme.name == "old scheme name") { // 2. edit our scheme itsm.update( new FieldConfigScheme.Builder(scheme) .setName("new scheme name") .toFieldConfigScheme(), scheme.associatedIssueTypeIds); } }
I didn't test my code. So, try to run it in a test-system first, just in case. :)
Can you tell me same for renaming Workflows , Field Configurations & Screen Scheme ?
Thanks in advance.!
Regards,
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, see your follow-up question.
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.