Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,421
Community Members
 
Community Events
176
Community Groups

How to pass custom field values of a JIRA ticket to a CI/CD tool like Jenkins

I am trying to create a workflow where a user would create a JIRA ticket. When the JIRA ticket is created, the flow would then pass certain field values from JIRA to a CI/CD tool like Jenkins where Jenkins would run a job using these field values (Jenkins would run a script and this script would use these field values). Has anyone got any guidance on how to do this please? I see someone has already asked this question many years ago and it was never answered: https://community.atlassian.com/t5/Jira-questions/How-to-pass-custom-field-value-in-JIRA-Webhooks-URL/qaq-p/405347

Many Thanks!

1 answer

0 votes

Hello Degan and welcome to the Community!

This is a very interesting idea indeed. I do have concerns with security since you're auto triggering actions based on possible random input (ensure you use a validator before triggering), but with that aside you may have a path forward, though it may not be easy.

Ideally, you're wanting to ensure some type of validation limited selection of variables to pass through within your CI/CD workflow. You may want to explore a combination of Jira advanced issue workflows, Jira webhooks, and possibly the use of Jira automation. While we don't have an exact solution for your ask, we would suggest reviewing the following to explore options:

Additionally, there may also be options within the marketplace to allow for additional scripting and automation tasks, I found a similar post about call external rest api using post function, which may help to explore automation options.

I hope this information proves helpful.

Regards,
Stephen Sifers

Hi Stephen,

Thank you for the warm welcome and a massive thank you for the detailed information you provided.

I will give these a read and try work out the best solution for my needs.

Thank you very much.

Kind Regards,

Dean

Like Stephen Sifers likes this

Hi @degan ,

 

My requirement also similar this, do you got any solution for how to achieve this in JIRA cloud.

Thanks & Regards

Gnanavelu

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS

Atlassian Community Events