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

[RFE] Add support for more Gitlab Issue Events and Comments #15

Open
sadsfae opened this issue Feb 26, 2024 · 2 comments
Open

[RFE] Add support for more Gitlab Issue Events and Comments #15

sadsfae opened this issue Feb 26, 2024 · 2 comments
Labels
enhancement New feature or request gitlab

Comments

@sadsfae
Copy link
Member

sadsfae commented Feb 26, 2024

Beyond just creating issues via the Gitlab webhook "Issue Events" webhook category we should also look to support additional payloads like

  • Issue comments

A comment is added to an issue or merge request

  • Issue Events

An issue is created, updated, closed, or reopened.

Right now transformers work for when an issue is created.

@sadsfae sadsfae added enhancement New feature or request gitlab labels Feb 26, 2024
@grafuls
Copy link
Collaborator

grafuls commented Feb 27, 2024

That's going to depend on the Jira webhook automation.

Moreover, we can receive the comment events from Gitlab but I don't think it's possible to link that with an existing Jira issue unless we include the Jira issue id upon creation somewhere on the Gitlab issue (labels?) that we would then have to parse out from the incoming webhook.

There is the possibility of creating a new Jira automation to send a webhook upon ticket creation where we can use Gitlab issue labels to store the Jira ticket ID but we would then have to include functionality on the yaml templating to iterate all the labels and pick the right one with the Jira ticket ID. That's pretty far fetched to me.

I don't think this is in the scope of wppt.

@sadsfae
Copy link
Member Author

sadsfae commented Feb 27, 2024

There is the possibility of creating a new Jira automation to send a webhook upon ticket creation where we can use Gitlab issue labels to store the Jira ticket ID but we would then have to include functionality on the yaml templating to iterate all the labels and pick the right one with the Jira ticket ID. That's pretty far fetched to me.

That's fair. Inside the repo settings of Gitlab webhooks there's an additional checkbox for Issue Comments (we just have Issue Events selected) for the payload. It could be that Issue Events including updated will do this anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gitlab
Projects
None yet
Development

No branches or pull requests

2 participants