In Jira Automation when using the When: Pull request created I typically have an Issue fields condition step that checks for a Component field value and then post a message to Microsoft Teams.
The issue I'm facing is that if the pull request in question contains more than one issue it will post multiple messages to teams, one for each issue in the pull request.
Is there a way of validating the component of either all or the first issue in the pull request and proceed to only post a single message to Microsoft Teams.
Thanks!
Hi @Marc-André
Full disclosure: I am not actively using the DevOps triggers at this time, and based on what I understand about them, I wonder if you could...
Best regards,
Bill
Hi @Bill Sheboy
Thank you for your answer. Although a bit more complex than I expected this automation to be this does solve my issue.
We might miss some PRs or get invalid notifications if a user does not name the PR appropriately but in the end this greatly eliminate notification spam.
Lets hope the values contained in the pullRequest payload gets expanded a bit in the future.
Best regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mark, you may also want to search in the Code Barrel (now part of Atlassian) backlog to see when they might improve this area in triggers. Unfortunately we cannot vote for/watch issues in this backlog.
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.