Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status
colourBlue
titleConfigure Security Token

Go to Jira Settings > Apps > Configure SCM Activity > Custom Tab.

Set security token and copy REST Endpoint URL.

Image Modified

Status
colourBlue
titleAdd New SCM Activity

POST https://scmactivity.ilaesolution.com/scmactivity/custom/push?clientKey=fd4a2eba-7864-3304-8292-****&securityToken=0123***

Required Schema Field(s):

  • issueKey

  • changeId

  • changeType

  • changeAuthor

  • changeDate

Response: [Status: 200]

Code Block
$ curl -XPOST -H "Content-Type: application/json" --data '{"issueKey":\
"DT-45","changeId":"100","changeType":"perforce","changeDate":"2016-05-01 00:00:00",\
"changeStatus":"submitted","changeAuthor":"john","changeLink":"http://perforceweb/c=100",\
"changeMessage":"Fixed bug for software X DT-45","changeFiles":[{"fileName":\
"/depot/src/AppEntityManager.java","fileAction":"Modified","fileVersion":"23"}]}' \
"https://scmactivity.ilaesolution.com/scmactivity/custom/push?clientKey=fd4a2eba-7864-3304-8292-****&securityToken=0123***"
{"result":1,"message":"[Info] DT-45 > 100 activity row [1] is added."}
$


SCM Activity Schema:

Code Block
{
  "issueKey": {
    "type": "string"
  },
  "changeId": {
    "type": "string"
  },
  "changeType": { //Preferred format: ChangeType_Repo/Instance Name e.g. p4_engsw
    "type": "string"
  },
  "changeAuthor": {
    "type": "string"
  },
  "changeDate": { //UTC date time with format %Y-%m-%d %H:%M:%S
    "type": "string"
  },
  "changeBranch": {
    "type": "string"
  },
  "changeTag": {
    "type": "string"
  },
  "changeTagLink": {
    "type": "string"
  },
  "changeStatus": {
    "type": "string"
  },
  "changeLink": {
    "type": "string"
  },
  "changeMessage": {
    "type": "string"
  },
  "changeFiles": {
    "type": "List"
  },
  "changeUpdate": {
    "type": "boolean"
  },
  "notifyEmail": {
    "type": "boolean"
  },
  "notifyAs": {
    "type": "string"
  }
}


SCM Change Files Schema:

Code Block
{
  "fileName" : {
    "type": "String"
  },
  "fileAction" : {
    "type": "String"
  },
  "fileVersion" : { //Optional
    "type": "String"
  },
  "fileLink" : {
    "type": "String"
  }
}