Forums

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

Custom listener activation only for few projects.

Dylan
Contributor
April 1, 2012

Hello,

I have created my own custom listener and it is working well however I would like to activate it only for few projects but not to be activated for the rest of the projects I have in my JIRA.

At first, I would like to active it only for one project.

Could you please advise how this can be achieved in JIRA?

Regards,

Dylan

1 answer

0 votes
Nic Brough -Adaptavist-
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.
April 1, 2012

Listeners are not project related, they are event driven. There's no way to say "listener X belongs to project Y" because that's a structural nonsense.

There are a couple of simple approaches to processing this though

1) Structure your workflows and config so that the events you are interested in are thrown by the workflows in use for the projects you are interested in. This can be quite hard to set up and maintain, and will only really work for workflow generated events (i.e. It won't work for standard events like "updated", "work logged" etc)

2) Write your listener so that it deals with "project" as part of it's procedure. I've just written a listener, where one config item is "run for project(s)" and the code says "if !issue.project in projectlist exit"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events