The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

retreive accountID of JIRA user from Bitbucket pipeline

Junxi (John) Li
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!
December 5, 2022

I would like to design a process which automatically create a JIRA issue against any merge into a specific branch.

First problem I am facing now is in the pipeline, the BITBUCKET_STEP_TRIGGERER_UUID is not same as the JIRA user accountId,

The person who kicked off the build ( by doing a push, merge etc), and for scheduled builds, the uuid of the pipelines user.

for example, user A has push a commit to Branch A. pipeline of Branch A starting to run.

It will automatically create a JIRA issue which reporter is the user A. 

However, as I have tested. the BITBUCKET_STEP_TRIGGERER_UUID is not same as the accountID in JIRA. so I will not know who is reporter of this issue.


Any solution to this?

 

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Junxi (John) Li
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!
December 6, 2022

solved, the UUID is not accountId, i have to get the account_id from calling Bitbucket API pipeline endpoint to get the full detail of the creator which shows the correct account_id.

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events