I am trying to add an existing Screen scheme to a issue type screen scheme using groovy in specific projects.
I haven't seen anything related in REST API.
So I am trying to use scriptrunner for that, unfortunately I cannot find any method to assign a screen scheme.
I will appreciate any help .
This might help a bit. Note that I haven't tested it. I coded it just to give you a hint.
// import and get these managers accordingly
// get existing scheme...
FieldScreenScheme myScheme = fieldScreenSchemeManager.getFieldScreenScheme(mySchemeId);
// add scheme to issueTypeScreenScheme
IssueTypeScreenSchemeEntity myEntity = new IssueTypeScreenSchemeEntityImpl(
issueTypeScreenSchemeManager, (GenericValue) null, fieldScreenSchemeManager, constantsManager);
myEntity.setIssueTypeId(null); // all IssueTypes
// assign to project
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events