service-api icon indicating copy to clipboard operation
service-api copied to clipboard

Feature Request: plugin event when an issue is manually linked

Open matt-richardson opened this issue 11 months ago • 7 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.

matt-richardson avatar Mar 13 '24 06:03 matt-richardson

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!

Kozovskaya avatar Mar 26 '24 07:03 Kozovskaya

Hi @Kozovskaya

Is that an internal event or a plugin event?

matt-richardson avatar Mar 26 '24 07:03 matt-richardson

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

Kozovskaya avatar Mar 26 '24 08:03 Kozovskaya

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?

matt-richardson avatar Mar 28 '24 07:03 matt-richardson

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

Kozovskaya avatar Mar 28 '24 09:03 Kozovskaya

Hey - just checking in on this. Any progress?

matt-richardson avatar Apr 15 '24 03:04 matt-richardson

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.

APiankouski avatar Apr 16 '24 09:04 APiankouski