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

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.

Suggest an answer

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

Atlassian Community Events