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

Automation: Help with json automation

Martin
Contributor
May 4, 2022

Hi there,

I am using an automation to sync the issue summary (title) between 2 projects. I'm using the built-in automation called: Copy Summary from trigger issue 

 

I would like however to create a custom name composed of the issue key and the summary

Key: "PS-417"

Summary: "Bla Bla Bla"

New Summary: "PS-417 Bla Bla Bla"

 

Why? Because we report this info to the customer portal into a Jira service desk project and since we cannot choose the field in the portal, I want the customer to know our "internal" ticket as well as it's external ticket. So we figure out to add it in the title.

 

I am a wannabe Jira expect but very dumb when it comes to json. I have yet been able to build one that works. Can you help me setting up the code that it needs?

 

Thank you!

 

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
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.
May 4, 2022

Hi @Martin 

When you note "help with JSON automation", what do you mean?  How are you making the update?

If you used an automation for Jira rule, the edit action should allow you to set the updated summary with:

{{triggerIssue.key}} {{triggerIssue.summary}}

If I am misunderstanding your request, would you please post an image of your complete automation rule to provide some context?  Thanks!

Kind regards,
Bill

Martin
Contributor
May 4, 2022 edited

Hi @Bill Sheboy , thank you for your answer.

Yes I say json because I think that's what you need to build with the custom automation code under More options.

Here is the screenshot of the automation that works for now.

 

Greenshot 2022-05-04 21.43.38.png

Martin
Contributor
May 5, 2022

@Bill Sheboy  thank you for your help, you made it work!

Can you tell me where I can find these references? thank you.

 

Solution:

 

jsonupdate.png

Bill Sheboy
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.
May 5, 2022

I am glad to learn that worked for you!

Regarding references, these are spread around a bit and always improving.  Here are some good places that I use a lot:

Happy automation researching!

Like • 2 people like this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events