0 Replies Latest reply on Feb 26, 2020 9:24 AM by Powell

    Simple stream add-on, object.description not working

    Powell Intermediate

      I am trying to get a simple stream integration working.   In my add-ons xform.js. the

      activity description isn't coming through in the stream - e.g. "activityInfo.object.description = body.description;"

      Even if I just  hard code this to a string,  the description never shows up anywhere.


      Here is my transform

      function transform(body, headers, options, callback)   {

      var activityInfo = {actor:{},object:{},jive:{}};

      var issueActionType = {};


      case "jira:issue_updated":

      issueActionType = {'name': "updated an issue"}




      case "jira:issue_created":

      issueActionType = {'name': "created a new issue"}





      issueActionType = {'name': "updated an issue"}




      activityInfo.actor.name = body.user.displayName;



      activityInfo.actor.email = body.user.emailAddress;



      activityInfo.object.image = "http://localhost:8080/resources/images/palette-1001/Citi_Collaborate.png"



      activityInfo.object.title = body.user.displayName + " " + issueActionType.name;



      activityInfo.object.description = 'desc:'+body.issue.fields.description;



      callback({ "activity" : activityInfo });





      I have seen others mention this problem, ie https://community.jivesoftware.com/community/developer/blog/2015/08/04/how-to-using-the-simple-stream-integration-builde…

      Any help greatly appreciated!