Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Adding another Issue Type association in Issue Type Screen Scheme with Java API

Diego Ferreira
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 1, 2017

Hey everyone,

I recently updated a method we have that creates an Issue Type Screen Scheme in our plugin. Now it creates 2 Screen Schemes and we want to associate an existing Issue Type Screen Scheme with both, as such:

  • One for all unassigned issue types;
  • One for a specific;

We are using something like the following to update it

        // add scheme to issueTypeScreenScheme
        IssueTypeScreenSchemeEntity entity = new IssueTypeScreenSchemeEntityImpl(
                issueTypeScreenSchemeManager, (GenericValue) null, fieldScreenSchemeManager, constantsManager);
        tcmEntity.setIssueTypeId(issueTypeId); // an entity can be for all IssueTypes (-> null), or just for 1
        tcmEntity.setFieldScreenScheme(screenScheme);
        issueTypeScreenScheme.addEntity(entity);

Do we need to execute anything else after this? (refresh, store, etc)

1 comment

Comment

Log in or Sign up to comment
ylonkar June 15, 2017

I am also facing same issue. Is there a way we can programatically add ScreenScheme and associate it with IssueType

TAGS
AUG Leaders

Atlassian Community Events