Skip to content

bitbucket list-issues

List bitbucket issues

Description

List bitbucket issues

Synopsis

bitbucket list-issues
    [--site <site>]
    --repo <repo>
    [--milestone <milestone>]
    [--priority <priority>]
    [--state <state>]
    [--type <type>]
    [--assignee <assignee>]
    [--reporter <reporter>]
    [--sort <sort>]
    [--page <page>]

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

milestone - (string)

     The number of the milestone to associate this issue with.
     Example: --milestone "milestone1"
     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

type - (string)

     Type of the issue.
     Example: --type "bug" , --type "enhancement" , --type "proposal"
     Default: _None_      Attributes: optional

assignee - (string)

     User to assign to this issue.
     Example: --assignee "assignee"
     Default: _None_      Attributes: optional

reporter - (string)

     The user that reported the issue.
     Example: --reporter "bitbucket_user1"
     Default: _None_      Attributes: optional

sort - (string)

     What to sort results by
     Example: --sort "created_on" , --sort "updated_on" , --sort "priority"
     Default: _None_      Attributes: optional

page - (int)

     Page number of the results to fetch
     Example: --page 2
     Default: _None_      Attributes: optional

Examples

Input:

x = !bitbucket list-issues --repo "simulage/daccosim" --type "proposal"
Output:
{
    "values": [
        {
            "type": "issue",
            "id": 32,
            "repository": {
                "type": "repository",
                "full_name": "simulage/daccosim",
                "links": {
                    "self": {
                        "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim"
                    },
                    "html": {
                        "href": "https://bitbucket.org/simulage/daccosim"
                    },
                    "avatar": {
                        "href": "https://bytebucket.org/ravatar/%7B23007f73-93bd-4f68-952a-72c16c7e2cc6%7D?ts=1973243"
                    }
                },
                "name": "daccosim",
                "uuid": "{23007f73-93bd-4f68-952a-72c16c7e2cc6}"
            },
            "links": {
                "self": {
                    "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim/issues/32"
                },
                "html": {
                    "href": "https://bitbucket.org/simulage/daccosim/issues/32/what-is-matryoshkajar"
                },
                "comments": {
                    "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim/issues/32/comments"
                },
                "attachments": {
                    "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim/issues/32/attachments"
                },
                "watch": {
                    "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim/issues/32/watch"
                },
                "vote": {
                    "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim/issues/32/vote"
                }
            },
            "title": "what is Matryoshka.jar",
            "content": {
                "type": "rendered",
                "raw": "I ran the develop branch code through IDEA, and ran the example \"1-equationsPair\", with no results. Later, it was discovered that Matryoshka.jar was missing, and it was enough to add it to the resource folder. I searched for relevant information and found that it was used when the Java.fmi package was built. Does this package have any other functions? Where can I read the relevant source code",
                "markup": "markdown",
                "html": "<p>I ran the develop branch code through IDEA, and ran the example \"1-equationsPair\", with no results. Later, it was discovered that Matryoshka.jar was missing, and it was enough to add it to the resource folder. I searched for relevant information and found that it was used when the Java.fmi package was built. Does this package have any other functions? Where can I read the relevant source code</p>"
            },
            "reporter": null,
            "assignee": null,
            "created_on": "2021-05-14T03:22:30.320396+00:00",
            "edited_on": null,
            "updated_on": "2021-07-26T13:53:49.611631+00:00",
            "state": "closed",
            "kind": "proposal",
            "milestone": null,
            "component": null,
            "priority": "major",
            "version": null,
            "votes": 0,
            "watches": null
        },
        {
            "type": "issue",
            "id": 8,
            "repository": {
                "type": "repository",
                "full_name": "simulage/daccosim",
                "links": {
                    "self": {
                        "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim"
                    },
                    "html": {
                        "href": "https://bitbucket.org/simulage/daccosim"
                    },
                    "avatar": {
                        "href": "https://bytebucket.org/ravatar/%7B23007f73-93bd-4f68-952a-72c16c7e2cc6%7D?ts=1973243"
                    }
                },
                "name": "daccosim",
                "uuid": "{23007f73-93bd-4f68-952a-72c16c7e2cc6}"
            },
            "links": {
                "self": {
                    "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim/issues/8"
                },
                "html": {
                    "href": "https://bitbucket.org/simulage/daccosim/issues/8/participation-in-fmu-cross-check"
                },
                "comments": {
                    "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim/issues/8/comments"
                },
                "attachments": {
                    "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim/issues/8/attachments"
                },
                "watch": {
                    "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim/issues/8/watch"
                },
                "vote": {
                    "href": "https://api.bitbucket.org/2.0/repositories/simulage/daccosim/issues/8/vote"
                }
            },
            "title": "Participation in FMU Cross-Check",
            "content": {
                "type": "rendered",
                "raw": "It would be highly benefical if Daccosom would participate in the FMU Cross check https://github.com/modelica/fmi-cross-check. \r",
                "markup": "markdown",
                "html": "<p>It would be highly benefical if Daccosom would participate in the FMU Cross check <a href=\"https://github.com/modelica/fmi-cross-check.\" rel=\"nofollow\" class=\"ap-connect-link\">https://github.com/modelica/fmi-cross-check.</a></p>"
            },
            "reporter": null,
            "assignee": null,
            "created_on": "2020-05-19T05:36:51.528562+00:00",
            "edited_on": null,
            "updated_on": "2020-11-06T08:17:22.491117+00:00",
            "state": "on hold",
            "kind": "proposal",
            "milestone": null,
            "component": null,
            "priority": "major",
            "version": null,
            "votes": 0,
            "watches": null
        }
    ],
    "pagelen": 20,
    "size": 2,
    "page": 1
}     
Input:
!bitbucket list-issues --repo "simulage/daccosim" --type "proposal"
Output:
ID  TYPE        PRIORITY    STATE   ASSIGNEE    MILESTONE   TITLE
32  proposal    major       closed  -           null        what is Matryoshka.jar
 8  proposal    major       on hold -           null        Participation in FMU Cross-Check

Access Control

To use this command, you need access to the following:

Field Value
Action "read"
Service Type "bitbucket"
Service Instance
Namespace repo
Object Type "issue"
Object ID

Please see Access Control for details.