Hi Everyone,
I am trying to create an automation so that when a card is moved to Code Review, I notify a message on SLACK channel with the link to the Issue and the link to the PR.
The link to the Issue is being sent correctly, but the one for the PR comes empty even though it exists. Does anyone know what might be wrong? See the image.
Message ( IN Portuguese )
👤 *{{issue.assignee.displayName}}* enviou uma atividade para Code Review.
Se alguém puder realizar a code review desse card, o time agradece! 🙏
đź”— <{{issue.url}}|Abrir no Jira>
đź”—<{{issue.development.pullRequests.first.url}}|Abrir Pull Request>
The problema is here:
đź”—<{{issue.development.pullRequests.first.url}}|Abrir Pull Request>
Some of the development smart values, such as pullRequest, are only provided to rules when their specific triggers are used:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/#--Pull-request--
I believe the workarounds are to save the PR data somewhere in the work item (e.g., a custom field) when a PR-related trigger happens or to use the REST API endpoints to get the data, calling them with the Send Web Request action.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.