@Override
  protected String getLink(SocialActivity activity, ServiceContext serviceContext)
      throws Exception {

    StringBundler sb = new StringBundler(5);

    sb.append(PortletPropsValues.JIRA_URL);
    sb.append("/browse/");

    JIRAIssue jiraIssue = JIRAIssueLocalServiceUtil.getJIRAIssue(activity.getClassPK());

    sb.append(jiraIssue.getKey());

    int activityType = activity.getType();

    if (activityType == JIRAActivityKeys.ADD_COMMENT) {
      sb.append("#action_");

      long jiraActionId = GetterUtil.getLong(getJSONValue(activity.getExtraData(), "jiraActionId"));

      JIRAAction jiraAction = JIRAActionLocalServiceUtil.getJIRAAction(jiraActionId);

      sb.append(jiraAction.getJiraActionId());
    }

    return sb.toString();
  }
  @Override
  protected Object[] getTitleArguments(
      String groupName,
      SocialActivity activity,
      String link,
      String title,
      ServiceContext serviceContext)
      throws Exception {

    String creatorUserName = getUserName(activity.getUserId(), serviceContext);

    JIRAIssue jiraIssue = JIRAIssueLocalServiceUtil.getJIRAIssue(activity.getClassPK());

    return new Object[] {creatorUserName, jiraIssue.getKey()};
  }