reportportal / service-api

Report portal. Main API Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: plugin event when an issue is manually linked

matt-richardson opened this issue · comments

In plugins, we have an event for LaunchAutoAnalysisFinishEvent, which is great, as we can then detect if an issue was auto-analyzed and linked to an external ticket. We use this in our (currently closed source) plugin to post a comment on a github issue, where we track occurrences of the issue.

I would like events raised when an issue is manually linked or unlinked from an external ticket, so we can perform the same "post a comment" logic.

Hello, @matt-richardson
Actually we do track the events when a test is linked/ unlined manually from an external ticket - LinkTicketEvent.
When a test is linked by AA there is a linkIssueAa event.
Please let me know if it exactly what you are looking for!

Hi @Kozovskaya

Is that an internal event or a plugin event?

@matt-richardson according to info from dev team, the event should be available in plugin

I must be missing something here, I think.

I can only see these ones under the com.epam.reportportal.extension.event namespace:
image

Searching for types, I cant see it:
image

I can see the class is available in the com.epam.ta.reportportal.core.events.activity package, but I wouldn't expect the plugin to have a direct reference to the service-api library?

@APiankouski could you please have a look? Check the event name

Hey - just checking in on this. Any progress?

Hi @matt-richardson, Indeed not all events are available in plugins.
Thanks for noting this.
We will discuss solution (moving events to plugin-api or separate lib)
We will notify you when the solution is ready.