My goal is: I want to get all screens, that are in use as "Edit screens".
Since it would be a lot of clicking around, to go through all projects, into the project settings, on the screens section, and check all schemes, and since I want to get a bit practice, I want to write a script to do the job.
So far I can read all projects, I can read the Issue type screen scheme for each project, and the Screen schemes, that are configured for each Issue type within the Issue type screen scheme. But I cannot read the Edit screen, that is configured in a Screen scheme.
Here is the code I have so far:
{code}
{code}
What I found :
When I have a Screen scheme, and I want to read the Edit screen, there is a method: FieldScreen getFieldScreen(IssueOperation issueOperation )
But I don't know how to provide that parameter "IssueOperation". It's not a string or an enum, it's an Object, I can create such an Object, but it's not giving the expected result.
E.g.:
I'm afraid, this is very specific, but any help is much appreciated.
Hi @Milan B
I do not have much time to investigate to make it work with IssueOperationImpl BUT below a script that go through all Screen Scheme and return screen in Edit Operation.
import com.atlassian.jira.component.ComponentAccessor
def fieldScreenManager = ComponentAccessor.getFieldScreenManager()def fieldScreenSchemeManager = ComponentAccessor.getFieldScreenSchemeManager()fieldScreenSchemeManager.getFieldScreenSchemes().each{ screenScheme ->screenScheme.getFieldScreenSchemeItems().each{if(it.getIssueOperationName().toString() in ['admin.issue.operations.edit']){log.error it.getFieldScreen().getName()}}}
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.