Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira issue Testing Link field

Hello,

We need to make an automation for testing link field in jira issues. The testing link is a combination from the bitbucket branch name and some other things.

For example link: RWP-343.RA.EXAMPLE.COM

RWP-343 will be the branch name and the rest will be static text.

The backend from the link will be deployed with pipelines.

Is there a way when the pipeline is run to populate the custom field in Jira issue with that link with the branch name from bitbucket ?

1 answer

0 votes
Sam Harding Atlassian Team Dec 05, 2021

Hi @Georgi Rizov 

There might be some way, depending on what pipelines/logic you are wanting to trigger on, to do this using a DevOps trigger. However, there definitely is a way using the Incoming Webhook trigger 

Assuming the issue key in question for the example is RWP-343, and you are wanting to populate your customfield_X with the link RWP-343.RA.EXAMPLE.COM

You can configure a rule to have an webhook trigger set to "Issues provided in the webhook HTTP POST body". Then, you can include an Edit Issue action, where you set your customfield_X to the smart value of

{{webhookData.link}}

Now all you need to do in the pipelines is call the webhook url defined in the trigger, along with the POST payload of

{"issues":["RWP-343"], "data": {"link":"RWP-343.RA.EXAMPLE.COM"}}

and it will populate that issue's custom field. Substitute the issue/branch key here with the branch name variable in your pipelines to get it to work generically.

Hope that helps

Cheers
Sam

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

815 views 24 28
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you