reportportal / service-api

Report portal. Main API Service
Apache License 2.0
43 stars 65 forks source link

Feature Request: plugin event when an issue is manually linked #1943

Open matt-richardson opened 4 months ago

matt-richardson commented 4 months ago

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.

Kozovskaya commented 3 months ago

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!

matt-richardson commented 3 months ago

Hi @Kozovskaya

Is that an internal event or a plugin event?

Kozovskaya commented 3 months ago

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

matt-richardson commented 3 months ago

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?

Kozovskaya commented 3 months ago

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

matt-richardson commented 3 months ago

Hey - just checking in on this. Any progress?

APiankouski commented 3 months ago

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.