How can I create a JIRA plugin which only visible in a specific project?

Hi Everyone, 

I am developing a JIRA plugin right now. However, I want this plugin only work for a sepesific project. How to do this?

 

For example, my atlassian-connect.json is 

"modules": {
          "webPanels" :[
       {
         "location": "atl.jira.view.issue.right.context",
         "url": "/helloworld.html",
         "key": "support-panel",
         "name": {
           "value": "Support Group"
         }
       }
     ]
     }

I only want the project "IOTSG" issues can see this web panel on the right side. How to do this?

 

Thanks,

Jennifer.

1 answer

1 accepted

Hi Jennifer,

you should look at conditions for the addon descriptor.

Documentation is here: https://developer.atlassian.com/static/connect/docs/latest/concepts/conditions.html

You should be able to leverage those to put a custom condition in your addon for the project you want. Worst case scenario, you might have to write an entity-property with the project key, and then reference the entity-property in your condition.

Cheers,

- Anthony

Thank you very much! I have a basic idea now.

Jennifer.

Could you please share you idea? I have the same requriement

Have you worked through the concepts in the documentation Anthony gave?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

950 views 3 12
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