• Community
  • Discussions
  • Adding another Issue Type association in Issue Type Screen Scheme with Java API

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

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

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

Comment

Log in or Join to comment
Community showcase
Emilee Spencer
Published Friday in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

57 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot