How can I fetch GitHub Actions build references in Jira? {{build.refs}} smart value returns null.

Priyanka Agrawal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 21, 2024
Consider a scenario where I have connected my GitHub repository to my Jira site, and I am configuring Jira automation rules to track my development and deployment status of GitHub on Jira.
I have a GitHub actions workflow that builds my code for every environment based on the branch to which the PR has been merged. For example, if a PR is merged to develop branch, the workflow builds the code for development environment; if a PR is merged to QA branch, the workflow builds the code for QA environment, etc. The Jira automation rule has been configured in such a way that the rule gets triggered when the build succeeds and if {{build.refs}} contains develop or QA, it changes the status of Jira issue to "Deployed to the dev environment" or "Deployed to the QA environment" based on the value of {{build.refs}}.
But {{build.refs}} smart value isn't returning anything; hence my rule is not working. What can be the issue? Or is there any other solution that can be implemented for my problem statement?
Let me know if any other details are required.
Thanks!

1 answer

0 votes
Sebastian Krzewiński
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 22, 2024

Hi @Priyanka Agrawal 

 

As I understand your rule don't work at all. What do you use as a trigger of your rule?

 

Regards,

Seba

Priyanka Agrawal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2024

Hi @Sebastian Krzewiński ,

 

Thanks for your response!

I am using "Build succeeds" as a trigger for my rule.

I have attached a screenshot of the entire rule for your reference:

Jira-issue-1.PNG

 

Regards,

Priyanka

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events