Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA automation to get Bitbucket pullrequests linked to JIRA

Narendra Karapakula
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!
August 5, 2025

I am trying to get pull requests  branches created  for a jira issue  using jira automation but i am getting empty values. but in UI i can see them linked and with bitbucket cloud

 i tried all possible values including smart values . can some one suggest the easy way to get them in automation  . 


1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 5, 2025

Hi @Narendra Karapakula -- Welcome to the Atlassian Community!

Without seeing the specifics of your rule and audit log details...

The automation branch-related smart values are only available when using the related triggers (or specific actions).  Please look here to learn more: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/#--branch--

To access the branch information with other trigger types, the rule would need to use the Send Web Request action to call the REST API endpoints in your source control tool.

 

Kind regards,
Bill

Narendra Karapakula
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!
August 6, 2025

Hi Bill,

Thanks for  the links, Could you elaborate further to get the pull request details.

 

I am trying to get the pull request information like pull request url along with repo name or atleast url which will have repo name in it

This information i need when my JIRA issue gets transitioned into a specific status  so that i can further process these Pull requests  like running  PR build in jenkins or merge the pull  request etc .... 

 

could you help achieve this with jira automation 

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 7, 2025

As I described, the pull request smart values are only available with the PR-related triggers:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/#--Pull-request--

 

When instead using the Work Item Transitioned trigger, two of the possible workarounds are:

  • when the PR triggers happen store the needed information in custom fields with the work item, and use those fields later
  • call the REST API for your source control tool with the Send Web Request action

Suggest an answer

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

Atlassian Community Events