Jira Version : 5.2.10
In all 3 cases you have to:
For workflows, use WorkflowManager and its methods getWorkflowClone(name) and updateWorkflowNameAndDescription(username, workflow, newName, newDescription).
For Field Configurations it's a bit confusing, because internally they are called "FieldLayout" (take a look at the URL when manually editing a Field Configuration :D). Use FieldLayoutManager#getEditableFieldLayout(id) to get the FieldLayout, then FieldLayout#setName(newName), then FieldLayoutManager#storeEditableFieldLayout(myFieldLayout).
For Screen Schemes, use FieldScreenSchemeManager#getFieldScreenScheme(id), then FieldScreenScheme#setName(newName), then FieldScreenScheme.save().
Use com.atlassian.jira.component.ComponentAccessor to get the Managers, as I showed in your previous question.
Thanks I hope this will wok out for me, I will accept the answer once it is tested out and share the complete scripts.
Regards,
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There will be 3 different scripts .. each for
Renaming Workflow
Renaming Field Congurations
Renaming Screen Schemes
Also, please let me know if there are another ways available.
Thanks,
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The title is ambiguous.
Do you want to rename Workflows, Field Configurations and (Field) Screen Schemes?
Or Workflow Schemes, Field Configuration Schemes and (Field) Screen Schemes?
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.