...
GET http://localhost:8080/rest/scmactivity/1.0/changeset/activity/{issueKey}Path list
GETÂ http://localhost:8080/rest/scmactivity/1.0/changeset/activity/tags/list
Query Parameters:
- issueKey (String) - JIRA Issue Key e.g. DT-45
- issueId (Number) - Jira Issue ID e.g. 10000
- sort (String) - Default (desc) e.g. desc / asc
- limit (Number) - Default (1000)
Response: [Status: 200]
Code Block |
---|
$ curl -s -u "user:passwd" -XGET \ http://localhost:8080/rest/scmactivity/1.0/changeset/activity/list/?issueKey=DT-45 |
Status | ||||||
---|---|---|---|---|---|---|
|
...
Code Block |
---|
$ curl -s -u user -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 ToolsX. Ref: DT-51","changeFiles":[{"fileName":\ "/depot/src/AppEntityManager.java","fileAction":"Modified","fileVersion":"23"}],"changeTag":\ "R1.0,R2.0"}' http://localhost:8080/rest/scmactivity/1.0/changeset/activity Enter host password for user 'user': {"result":1,"message":"[Info] DT-51 > 100 activity row [1] is added."} $ |
SCM Activity Schema reference:
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": { //comma separated tags "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" } } |
Status | ||||||
---|---|---|---|---|---|---|
|
...
Code Block |
---|
{
"fileName" : {
"type": "String"
},
"fileAction" : {
"type": "String"
},
"fileVersion" : { //Optional
"type": "String"
},
"fileLink" : {
"type": "String"
}
} |
Status | ||||||
---|---|---|---|---|---|---|
|
DELETE http://localhost:8080/rest/scmactivity/1.0/changeset/remove/activity
...