bitbucket edit-issue
Edit bitbucket issue
Description
Edit bitbucket issue
Synopsis
bitbucket edit-issue
[--site <site>]
--repo <repo>
--issue <issue>
[--title <title>]
[--content <content>]
[--milestone <milestone>]
[--type <type>]
[--priority <priority>]
[--state <state>]
[--assignee <assignee>]
Arguments
site
- (string)
Site where this command will be executed
Example: --site "site-1"
Default: input.site
Attributes: optional
repo
- (string)
Fully Qualified Repository Name for issue
Example: --repo "bitbucket_user1/test_repo_1"
Default: _None_
Attributes: required
issue
- (int)
issue id
Example: --issue 1
Default: _None_
Attributes: required
title
- (string)
The title of the issue
Example: --title "Write a user facing document on how to create new integration and commands"
Default: _None_
Attributes: optional
content
- (string)
The contents of the issue.
Example: --content "This document should be single place to get started and contribute integrations for the open source community"
Default: _None_
Attributes: optional
milestone
- (string)
The number of the milestone to associate this issue with.
Example: --milestone "milestone1"
Default: _None_
Attributes: optional
type
- (string)
Type of the issue.
Example: --type "bug"
, --type "enhancement"
, --type "proposal"
Default: _None_
Attributes: optional
priority
- (string)
Priority of the issue.
Example: --priority "major"
, --priority "minor"
, --priority "trivial"
Default: _None_
Attributes: optional
state
- (string)
State of the issue. Either open or closed.
Example: --state "open"
, --state "new"
, --state "closed"
, --state "on hold"
, --state "resolved"
Default: _None_
Attributes: optional
assignee
- (string)
User to assign to this issue.
Example: --assignee "assignee"
Default: _None_
Attributes: optional
Examples
Input:
Output: Input: Output:{
"type": "issue",
"id": 5,
"repository": {
"type": "repository",
"full_name": "sbansal7/repo1",
"links": {
"self": {
"href": "https://api.bitbucket.org/2.0/repositories/sbansal7/repo1"
},
"html": {
"href": "https://bitbucket.org/sbansal7/repo1"
},
"avatar": {
"href": "https://bytebucket.org/ravatar/%7Bc7b44412-1430-4789-a512-4c8cadf3f6f7%7D?ts=default"
}
},
"name": "repo1",
"uuid": "{c7b44412-1430-4789-a512-4c8cadf3f6f7}"
},
"links": {
"self": {
"href": "https://api.bitbucket.org/2.0/repositories/sbansal7/repo1/issues/5"
}
},
"title": "testTitle1",
"content": {
"type": "rendered",
"raw": "",
"markup": "markdown",
"html": ""
},
"reporter": {
"display_name": "Sachin Bansal",
"links": {
"self": {
"href": "https://api.bitbucket.org/2.0/users/%7Bfa271433-988c-4a42-932b-380426e46f8e%7D"
},
"avatar": {
"href": "https://secure.gravatar.com/avatar/bbcb732b26ae24604238af9c110f5f76?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FSB-2.png"
},
"html": {
"href": "https://bitbucket.org/%7Bfa271433-988c-4a42-932b-380426e46f8e%7D/"
}
},
"type": "user",
"uuid": "{fa271433-988c-4a42-932b-380426e46f8e}",
"account_id": "630d04a0316bbc56c42401e9",
"nickname": "Sachin Bansal"
},
"assignee": null,
"created_on": "2022-08-30T15:42:14.325947+00:00",
"edited_on": null,
"updated_on": "2022-08-30T15:42:14.325947+00:00",
"state": "new",
"kind": "bug",
"milestone": null,
"component": null,
"priority": "major",
"version": null,
"votes": 0,
"watches": null
}
Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "update" |
Service Type | "bitbucket" |
Service Instance | |
Namespace | repo |
Object Type | "issue" |
Object ID | issue |
Please see Access Control for details.