...
Expand |
---|
|
POST /rest/api/2/issue/{issueIdOrKey}/comment Adds a new comment to an issue. RequestPath parametersissueIdOrKey Required string Issue id or key Query parametersexpand string Optional flags: renderedBody (provides body rendered in HTML) Body parametersauthor UserJsonBean body string created string id string properties Array<EntityPropertyBean> renderedBody string self string updateAuthor UserJsonBean updated string visibility VisibilityJsonBean Example Code Block |
---|
# This code sample uses the 'requests' library:
# http://docs.python-requests.org
import requests
from requests.auth import HTTPBasicAuth
import json
url = "http://{baseurl}/rest/api/2/issue/{issueIdOrKey}/comment"
auth = HTTPBasicAuth("email@example.com", "<api_token>")
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
response = requests.request(
"POST",
url,
headers=headers,
auth=auth
)
print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": "))) |
|
Expand |
---|
|
PUT /rest/api/2/issue/{issueIdOrKey}/comment/{id} Updates an existing comment using its JSON representation. RequestPath parametersissueIdOrKey Required string Issue id or key id Required string Comment id Query parametersexpand string Optional flags: renderedBody (provides body rendered in HTML) Body parametersauthor UserJsonBean body string created string id string properties Array<EntityPropertyBean> renderedBody string self string updateAuthor UserJsonBean updated string visibility VisibilityJsonBean Example Code Block |
---|
| # This code sample uses the 'requests' library:
# http://docs.python-requests.org
import requests
from requests.auth import HTTPBasicAuth
import json
url = "http://{baseurl}/rest/api/2/issue/{issueIdOrKey}/comment/{id}"
auth = HTTPBasicAuth("email@example.com", "<api_token>")
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
response = requests.request(
"PUT",
url,
headers=headers,
auth=auth
)
print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": "))) |
|
...
Jira architecture
Atlassian's architecture documentation will help you understand Jira fundamentals and get a high-level perspective of Jira's dependencies.
...