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
Community Members
Community Events
Community Groups

Scriptrunner REST endpoint - Groovy - parse/ convert x-www-form-urlencoded to something like JSON


Hi there,

I'm quite new to all of this and I'm not sure whether I'm right here. I'm trying to set up an automation in Jira which creates a new issue when a new customer has subscribed to a Mailchimp audience . The Mailchimp webhook fires to the Scriptrunner endpoint. So far so good.

The endpoint log/ payload information looks like this:


I set a webhook in Mailchimp that fires every time a new subscriber of an audience appears. Mailchimp sends a HTTP POST request to a Jira Sriptrunner REST endpoint.

The content type of this request is application/x-www-form-urlencoded.

Within the Jira endpoint I would like to read the request data. How can I do that?

The payload (raw body) I receive looks like this:


Now I would like to parse the data of the raw body into a JSON or something similiar.

The result might look like this:

 "web_id": 123,
 "email": "",
 "company": "First",

Meanwhile I searched around a little and found something like the node.js "querystring" module. It would be great if there is something similiar within Groovy or any other way to parse the data of application/x-www-form-urlencoded to json format.

Best regards and thanks in advance


1 answer

For anyone interested, the answer's at StackOverflow :

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

349 views 0 7
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