POST /dashboards/{dashboardId}/gadgets
Query parameters
|
Name |
Type |
Default |
Description |
|---|---|---|---|
|
|
boolean |
|
When |
Request body
{
"gadgetType": "custom-chart-dashboard-item",
"position": { "column": 0, "row": 0 },
"color": "green",
"title": "Issues by status",
"sourceGadgetId": 1234,
"sourceDashboardId": 5678,
"sourceSiteUrl": "https://other-site.atlassian.net",
"configuration": { /* gadget-type-specific JSON */ },
"fieldMapping": null
}
|
Field |
Type |
Required |
Notes |
|---|---|---|---|
|
|
|
yes |
Must be one of the supported types. |
|
|
object |
yes |
Both |
|
|
|
yes |
Zero-based column index. |
|
|
|
yes |
Zero-based row index. |
|
|
|
no |
Jira-defined color name. |
|
|
|
no |
Gadget title. |
|
|
|
no |
All-or-none with the other two source fields. |
|
|
|
no |
All-or-none with the other two source fields. |
|
|
|
no |
All-or-none; must be non-blank when set. |
|
|
object |
yes |
Gadget-type-specific configuration JSON. |
|
|
object |
no |
Currently accepted but not persisted. Reserved for a future iteration. |
Response — 200 OK
A Gadget object reflecting the newly created gadget. Source fields and configuration are echoed from the request.
Errors
|
Status |
When |
|---|---|
|
|
|
|
|
|