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,556,454
Community Members
 
Community Events
184
Community Groups

How to Base64 encode text in a rule action?

Michael Kuhl _Appfire_
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.
Jul 06, 2020

In order to make an outgoing Web Request the API I wish to call requires that I base64 encode the payload and supply the encoded text as a query parameter. 

My plan was to create a variable that contained the Base64 encoded text and then use that variable in the URL for the web request.  However, I do not find a string function for Base64 encoding.

Does anyone know of perhaps an undocumented string function or some other method to perform the encoding in an action?

1 answer

1 accepted

0 votes
Answer accepted
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jul 22, 2020

Hey @Michael Kuhl _Appfire_ !

Unfortunately there's no secret base64 encode function. Definitely was worth checking, but all the encoders (HTML, JSON, XML, URL) are listed on the text fields documentation.

It's another layer, but one workaround might be using Zapier/IFTTT or the like to encode the data before sending it on to its final destination. Zapier can run code on webhook data for sure and it's just a couple lines to do the encode there.

Cheers,
Daniel

Michael Kuhl _Appfire_
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.
Jul 22, 2020

Thanks @Daniel Eads that's exactly where I ended up going (Jira Automation calling a Zapier webhook).  It had the added benefit of supporting my ultimate endpoint app which eliminated the need for manually creating the query with base64.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events