How to get events and receivers of Notification Scheme programmatically from JIRA. The events like Issue Created, Issue Closed, etc and receivers like watchers, assignee, reporter, etc?
Community moderators have prevented the ability to post new answers.
In what context?
A listener for example, picks up the event naturally. But you might be trying to write a report. What are you trying to "get" and where? Might be easier to explain why you're asking, in terms of what the end user gets out of what you're writing.
Thank you for the immediate reply.
I want to extract all fields related to notification schemes like notification name, description, the event like issue assigned, issue created, etc and receivers like assignee, reporter, etc by using java API. I got the name and description as I used notificationSchemeManager for that. But I am not getting its events and receivers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's pretty much what you asked before. Could you give us the context I've asked for?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, a listener is a receiver, and it has direct access to the event that triggered it, so that case is probably a poor example.
Could you explain what you are trying to do for the users here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If an event is triggered let's say Issue Created and there are receivers let's say allWatchers, reporters, etc who will receive particular notification. So with respect to every event, there are receivers within a notification scheme. So I want those events and receivers using API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You'd need to read the notification scheme for the event and use it to build a list of people. See https://docs.atlassian.com/jira/server/com/atlassian/jira/notification/NotificationSchemeManager.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.