Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

use groovy scripts,how to copy jira's screen?

jingjing November 22, 2018

i want to copy fieldscreen to a new named screen by groovy

1 answer

1 accepted

0 votes
Answer accepted
Tom Lister
Community Champion
November 24, 2018

 

 Hi @jingjing

FieldScreenService interface has this method

ServiceOutcome<FieldScreen>copy(FieldScreen screen, String copyName, String copyDescription, ApplicationUser loggedInUser)Creates a copy of the passed field screen assigning the passed name and description.

I think you’ll need to instantiate you own instance of DefaultFieldScreenService. There doesn’t appear to be a ‘manager’ for it.

check API docs

https://docs.atlassian.com/software/jira/docs/api/7.8.0/com/atlassian/jira/bc/issue/fields/screen/DefaultFieldScreenService.html

Tom Lister
Community Champion
November 25, 2018

I tried this approach, it’s not straightforward at all.

what are the reasons for doing this?

jingjing November 25, 2018

i try it and success

mesa sisa August 27, 2020

hello @jingjing ,

could you tell me how you did that?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events