Getting activity stream in json format

Hi,

I'm trying to get the activity stream from JIRA in json format and I don't know why I not able to do it. It always come in XML. By the way, I'm using JIRA Cloud.

I'm doing this : curl -u user:password -H "Content-Type:application/vnd.atl.streams.thirdparty+json" https://xxx.atlassian.net/activity

 

Can someone help me ?

 

Thanks,

João Cerdeira

5 answers

Hi João,

Checking the latest version of our API documentation I cannot see any methods to retrieve JIRA's activity stream through API, so I believe you will only be able to retrieve this data via XML using https://xxx.atlassian.net/activity.

Cheers,

Clarissa.

I'd like to get the streams in json too. There is a document that describes how to post new streams using a REST API (which itself is not described in the Rest API documentation). But I've had no success POST'ing or GET'ing activities using that REST API. Is there some additional configuration or administrative work required to enable that API?

For what it's worth, I was able to POST to the thirdparty activity stream (just had to drop the 'jira' from the path used in the examples) - but it seems that the thirdparty service can only 'GET' what's been 'POST'd to it.

did you find a solution to get activity stream in JSON format instead of XML?

 

No, I had to go other way with my requirement!

please tell the alternate approach / better approach or solution, which you used. Thankyou

 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,311 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot