Smart value for Bitbucket PR from Jira issue

Kunal Keshav Singh Sahni July 17, 2023

Hi, 
I am creating a workflow such that when an issue transitions to Done state, a message needs to go to Slack. 

Now considering in my case, all issues will be linked to Bitbucket. 
that means, in the Jira ticket I am able to see Pull requests, build etc. because the branch names and Pull requests all start with JIRA key. 

I want to send the associated pull requests of this issue and the reviewer name of the PR as well in slack.

Not able to get these two values using smart-values. Kindly help.

PS : I tried  {{issue.development[pullRequest]}} but it did not work

1 answer

0 votes
Vedant Kulkarni
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.
July 17, 2023

@Kunal Keshav Singh Sahni This could be configured from either way that is from Bitbucket to Slack. PR details and Issue details can also be transferred as notification as described here Integrate Bitbucket Cloud with Slack | Bitbucket Cloud | Atlassian Support.

I hope this could help you.

Kunal Keshav Singh Sahni July 17, 2023

@Vedant Kulkarni can I get them as smart-values in Jira workflow for Send Slack Message trigger in Jira workflow 

Vedant Kulkarni
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.
July 17, 2023

@Kunal Keshav Singh Sahni , You can't get in workflow smart values. However, you can use Jira Automation and make use of development smart values listed here Jira smart values - development | Cloud automation Cloud | Atlassian Support.

I don't see the reviewer/approver, but you can get Pull Request detail which can be transferred to Slack.

automationSlackIntegration.JPG

Kunal Keshav Singh Sahni July 17, 2023

Hi @Vedant Kulkarni , thanks for the answer, I am using the same workflow,

{{issue.development}} gives me some values but the JIRA smart values - development can only be used with following flows [PR created, declined, merged]image.png

So I am wondering how to use these in my usecase. 



Vedant Kulkarni
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.
July 24, 2023

@Kunal Keshav Singh Sahni ,

Sadly, we cannot proceed with Automation and there is already a similar thread Solved: How to get pull request creator / author as a smar... (atlassian.com).

However, as an alternative approach, you could try calling Jira/Bitbucket API but may need an additional editor such as Scriptrunner for Jira Cloud.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events