Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matt-richardson opened this issue Mar 13, 2024 · 7 comments
Open

Comments

@matt-richardson
Copy link

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
Copy link

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
Copy link
Author

Hi @Kozovskaya

Is that an internal event or a plugin event?

@Kozovskaya
Copy link

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

@matt-richardson
Copy link
Author

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
Copy link

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

@matt-richardson
Copy link
Author

Hey - just checking in on this. Any progress?

@APiankouski
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants