Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I push activities to the Activity Stream in JIRA

Viðar Svansson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 12, 2011

As a plugin developer I am interested in adding new type of activities to the Activity Stream plugin. Is this possible and if so, were would be a good place to start?

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 12, 2011

Activity Stream in JIRA is derived from the change history on issues. You will need to push data in to it if you need to add more I guess!

Viðar Svansson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 12, 2011

I was hoping to push non-issue related activites. I guess that is not possible then.

1 vote
lmiranda_atlassian
Contributor
February 20, 2014

From JIRA 5.0 onwards you can push arbitrary activities into an activity stream using a REST API (also available in Confluence 4.1). You would need to POST something like this:

{
  "published": "2011-02-10T15:04:55.000Z",
  "actor": {
    "id": "jko",
    "image": {
      "url": "http://www.gravatar.com/avatar/00a08e3ffde37612301a0d65824cb6cb?s=48",
      "width": 48,
      "height": 48
    }
  },
  "icon" : {
    "url": "https://bitbucket.org/favicon.ico",
    "width" : "16",
    "height" : "16"
  },
  "object" : {
    "id": "csid19021043803344554",
    "objectType": "changeset",
    "url" : "https://bitbucket.org/scalatra/scalatra/commit/a74e68d7de52f98c1ea4f3c48fd5bbec70fa507c"
  },
  "generator" : {
    "id": "http://www.bitbucket.org",
    "displayName" : "Bitbucket"
  },
  "target": {
    "url": "ONE-1"
  },
  "id" : "http://bitbucket.org/jko/",
  "title" : "Merge commit '68041056c69461d93958197cdb401a9ba4e5a0a4' into HEAD",
  "content" : "<blockquote>Compile with '-unchecked -deprecation' and clean up what we found.</blockquote>"
}

More information in Adding Activities to a Third Party Feed with the REST API.

1 vote
abhalla
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2011

Hi,

Activity Streams 4.1 allows plugin developers to create third-party activity providers that can be used in conjunction with Activity Streams. In addition to providing activity content, the activity provider plugin can contribute filtering options which would be available on the stream's configuration screen.

See Consuming an Activity Streams Feed for more information.

TAGS
AUG Leaders

Atlassian Community Events