I am trying to get activity stream of my jira instance using the below api and it is not working , can anybody point me in the right direction ?
JIRA rest api to fetch the activity stream
9.2k views Asked by rteja At
2
There are 2 answers
0
Josh Withee
On
Here is an example of consuming the activity stream through the Jira API using Basic Authentication. This is in C#, but the basic pattern can be applied anywhere:
string myJiraUsername = "username";
string myJiraPassword = "password"; //or API token
string authenticationHeaderValue = Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(myJiraUsername + ":" + myJiraPassword));
System.Net.Http.HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authenticationHeaderValue);
Task<HttpResponseMessage> task = client.GetAsync("https://mycompany.atlassian.net/activity");
task.Wait();
HttpResponseMessage response = task.Result;
string resultOfApiCall = "";
if (response.IsSuccessStatusCode)
{
resultOfApiCall = response.Content.ReadAsStringAsync().Result;
Console.WriteLine("This was returned by your API request:\n" + resultOfApiCall);
}
Related Questions in JIRA
- JIRA - How to create a new series of key value for a issue type?
- JIRA Hide fields in View
- Jira Soap Api Add Watchers
- java.lang.LinkageError: loader constraint violation when developing a SOAP plugin in JIRA
- How to change the issue Type of an issue in JIRA via email?
- Hide the "Smart querying activated" message in Jira
- Jira nFeed plugin returning blank values
- How to deserialize comments from JIRA webhook correctly
- Find JIRA tickets created between 9.00 am and 10.00 am
- How to get reports from Jira?
- Update JIRA ticket status using REST API
- Filter issues updated by particular user in period of time using JQL
- Must I always have to restart the Tomcat server to clear out Velocity Template cache?
- Createmeta using jirapython
- Custom field to display Confluence pages
Related Questions in JIRA-PLUGIN
- JIRA - How to create a new series of key value for a issue type?
- Filter issues updated by particular user in period of time using JQL
- java.lang.NoClassDefFoundError: (Atlassian JIRA)
- Jira post function - get current issue ID / Key
- Jira plugin change user permission programmatically
- new blank jira plugin throws exception as soon as i edit jira.version in pom.xml
- JQL - Get all issue based on project from result jql request
- JIRA anonymous REST API calls
- Issues Templates for JIRA Core Workflows
- Enable Perforce job creation for each issue that is created on JIRA
- How to link SonarQube with JIRA for the version 5.6
- JIRA plugin webwork action is not being find
- File attachment with Jira REST API returns empty array
- Custom cascading select not showing in view issue
- Jira plugin for Jenkins is not woking?
Related Questions in JIRA-REST-API
- Update JIRA ticket status using REST API
- HOw to create Jira using Rest API and add users in notification
- Jira plugin change user permission programmatically
- 400 / 500 error adding worklog in Jira REST API
- JIRA anonymous REST API calls
- Jira REST API idempotency
- How to use Jira-rest-java-client with Jersey 2
- How to post jenkins job result in jira?
- Creating a new “JIRA issue” using REST API in java with maven
- JIRA Rest API select minimal resource
- How to filter Jira issues by more complex criteria, like " status changed to Reopened"?
- Insertion of data in salesforce from android native app
- Authenticating JIRA API with okta SSO
- JIRA maintain login session
- File attachment with Jira REST API returns empty array
Related Questions in JIRA-REST-JAVA-API
- Update JIRA ticket status using REST API
- JIRA anonymous REST API calls
- How to use Jira-rest-java-client with Jersey 2
- How to post jenkins job result in jira?
- Sending emails using JIRA REST Client
- Why after including JRJC dependency in pom.xml http exception are coming?
- Unable to resolve jira-rest-java-client dependency
- Do i need to create an add on for my jira instance if i want to create a mobile client for it?
- Update existing issue field data in JIRA using rest api
- Is there a way to to see what dates/times tickets changed Status via the JIRA API?
- jira REST Plugin The ResourceConfig instance does not contain any root resource classes
- How to prevent duplication of JIRA Tickets in python
- how i can send the issue mule to Jira?
- What is Connection Address for JIRA in Mule
- How to update labels for the issues present in Jql query/Filter
Related Questions in JIRA-MOBILE-CONNECT
- JIRA rest api to fetch the activity stream
- How to use SearchCount method of Search Service Interface of atlassian 6.2.1?
- Resolving duplicate symbols in cocoapods, when using, JIRAMobieConnect and Appcelerator Framework?
- Two way communication in JIRA Mobile Connect for ios crashes the app due to sqlite locking
- jira mobile connect not creating an issue
- Sending sms using transactional api from sfmc to Indian mobile number
- How can I supplement the "environment" details provided by JMC (Jira Mobile Connect)?
- Crash reporter in jira (iPhone Application) is not working
- HockeyApp SDK integration to PULL crash logs
- JIRA Connect 1.2.1 imported as CocoaPod results in linker error for armv7
- Can We Export Our Jiras from Dashbord to an Excel Sheet?
- ERROR ITMS-90046: "Invalid Code Signing Entitlements"
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You should check this page out: https://developer.atlassian.com/docs/atlassian-platform-common-components/activity-streams/consuming-an-activity-streams-feed
The Atom feed of the activity stream works well only if you also log in in your feed reader.