Versions Compared

Key

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

The following operations are available for working with issues.Click an operation name to see details on how to use it.

...

  • issueIdOrKey: Identifies the issue to retrieve. This can be an issue ID, or an issue key.
  • fields : The list of fields to return for the issue.
  • expand : The parameters to expand.
Anchor
samReq
samReq
Sample request

...

Code Block
languagexml
titleSample request for updateIssue
{
    "username":"admin",
    "password":"jira@jaffna",       
    "uri":"https://testcon.atlassian.net",        
    "issueIdOrKey":"TEST-6",
    "issueFields":{  
        "update":{  
            "summary":[  
               {  
                  "set":"Bug in business logic"
               }
            ],
            "labels":[  
               {  
                  "add":"triaged"
               },
               {  
                  "remove":"blocker"
               }
            ]
         }
    }
}
Related JIRA API

https://developer.atlassian.com/static/rest/jira/6.1.html#d2e1209

...

  • issueIdOrKey: Identifies the issue to update. This can be an issue ID, or an issue key.
  • expand : The parameters to expandissueFields: Fields of the issue.
Anchor
samReq
samReq
Sample request

...

Code Block
languagehtml/xml
titledoTransition
 <jira.doTransition>
    <issueIdOrKey>{$ctx:issueIdOrKey}</issueIdOrKey>
    <updateComment><issueFields>{$ctx:updateCommentissueFields}</updateComment>
    <resolution>{$ctx:resolution}</resolution>
	<transitionId>{$ctx:transitionId}</transitionId>
</jira.doTransition>

...

issueFields>
</jira.doTransition>
Properties
  • issueIdOrKey: Identifies the issue to update. This can be an issue ID, or an issue key.
  • updateComment: The comment to post with the transition.

  • resolution: The type of resolution.

  • transitionId: The ID of the transition you want to perform.

...

Code Block
languagexml
titleSample request for doTransitions
{
    "username":"admin",
    "password":"jira@jaffna",       
    "uri":"https://testcon.atlassian.net",              
    "issueIdOrKey":"TEST-2"
    "updateCommentissueFields":"admin", {
     "update": {
         "resolution":"Fixed",comment": [
               {
                   "transitionId":"21"add": {
                       "body": "Bug has been fixed."
                       }
               }
           ]
       },
      "transition": {
           "id": "11"
       }
   }
}
Related JIRA API

https://developer.atlassian.com/static/rest/jira/6.1.html#d2e1097

...

  • issueIdOrKey: Identifies the issue whose comments you want to get. This can be an issue ID, or an issue key.
  • expand : The parameters to expand.
Anchor
samReq
samReq
Sample request

...