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

How to Base64 encode text in a rule action?

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 Jul 22, 2020

Hey @Michael Kuhl _Bob Swift Atlassian Apps_ !

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.


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
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

114 views 1 2
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