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 best solutions below
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
- List of US under Epic with label
- DevOps Preference: Point Solutions or Single Platform?
- Jira helpdesk widget doesn't create an iframe when script is loaded dynamically
- JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1). Error while integrating Jira create_issue tool with llm
- How to integrate JIRA with AWS dynamodb service, If any story/task movement has been occured on jira dashabord it should reflect on the AWS dynamodb?
- Listens to a github issue comment event and returns the comment added
- Can I take a velocity figure for a Fix Version in eazyBI JIRA App and use it calculate the velocity of a subset Fix Version? e.g. beta 1, beta 2, etc
- How can I limit a user to only see one project in Jira
- Jira - two different lists in transition
- Trouble Accessing Host Alias in Smarty Template (Centreon)
- How can I attach a Parent Issue Name to a Subtask Name in Jira?
- Jira Notification Scheme so that current assignee is notified only if they belong to specific group
- Should I Create One Branch per Task or One Branch for the Entire User Story
- Can a testing management tool support automated testing?
- JIRA JQL ORDER BY Case Statement Search
Related Questions in JIRA-PLUGIN
- Can I take a velocity figure for a Fix Version in eazyBI JIRA App and use it calculate the velocity of a subset Fix Version? e.g. beta 1, beta 2, etc
- How can I export jira archived issue csv file using Java code
- structure.gantt a task that must be at certain time for a certain duration vs automatically scheduled tasks
- Jira search_issues error returns "project not identified"
- Configuration fields in JIRA gadget
- Error in jira plugin development. while running mvn install, even if atlas-mvn clean works fine
- Single sign-on to JIRA v9.5 server failed
- How to update TestrunExecutionStatus as PASS or FAIL in jira using Jira Rest Java Client (JRJC) library
- Spring Boot application for Atlassian security is not starting
- How can I conditionally hide a field in Issue Edit screen in Jira On Perm, like this video shows in Jira Cloud
- Jira cloud REST API - Set default value of system field
- What could be the problem on my Jira Cloud custom app?
- Script function failed on Automation for Jira rule:IllegalArgumentException: wrong number of arguments
- JIRA Historic Data with Structure Plugin
- how to get rate limit values in JIRA REST API of /rest/api/3/field
Related Questions in JIRA-REST-API
- Listens to a github issue comment event and returns the comment added
- Need documentation or API reference to create job posts on Hirist platform
- Unable to pass data validation when reference an object in Jira Assets (JSM) import schema
- How can I export jira archived issue csv file using Java code
- Jira - How to calculate count of days in status?
- Send the test results in JSON format to Xray
- Hashtags as numbered list indicators in the response of Jira ticket description
- python jira client and rate limit
- Oracle apex and jira integration
- Not able to get the Cycle, Execution ID using Zephyr squad Rest APIs
- Converting Jira File Binary to a Normal File
- Using Zephyr Rest API to get all test cases
- Delphi TRESTClient POST example --data vs. body
- How to get the epics list from a Jira project
- Jira Rest API retrieve assignee displayName
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
- Sending sms using transactional api from sfmc to Indian mobile number
- ERROR ITMS-90046: "Invalid Code Signing Entitlements"
- Resolving duplicate symbols in cocoapods, when using, JIRAMobieConnect and Appcelerator Framework?
- JIRA Connect 1.2.1 imported as CocoaPod results in linker error for armv7
- HockeyApp SDK integration to PULL crash logs
- JIRA rest api to fetch the activity stream
- Two way communication in JIRA Mobile Connect for ios crashes the app due to sqlite locking
- How to use SearchCount method of Search Service Interface of atlassian 6.2.1?
- Can We Export Our Jiras from Dashbord to an Excel Sheet?
- Crash reporter in jira (iPhone Application) is not working
- jira mobile connect not creating an issue
- How can I supplement the "environment" details provided by JMC (Jira Mobile Connect)?
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)
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?
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.