gioboa / jira-plugin

Jira plugin for VsCode
https://marketplace.visualstudio.com/items?itemName=gioboa.jira-plugin
MIT License
265 stars 41 forks source link

feat: Issue creation: link to sprint #55

Closed imsergiobernal closed 5 years ago

imsergiobernal commented 5 years ago

It would be nice if you can link a new issue to an existing current sprint

gioboa commented 5 years ago

The difficult for this feature is find the API that give you the "list of sprints"

gioboa commented 5 years ago

@imsergiobernal Could you send me sprint field JSON? You did the same thing here Thanks :+1:

gioboa commented 5 years ago

I close it for the moment.

caleb15 commented 5 years ago

This would be a nice feature to add.

Here's my sprint field JSON:

                        "customfield_10019": {
                            "required": false,
                            "schema": {
                                "type": "array",
                                "items": "string",
                                "custom": "com.pyxis.greenhopper.jira:gh-sprint",
                                "customId": 10019
                            },
                            "name": "Sprint",
                            "key": "customfield_10019",
                            "hasDefaultValue": false,
                            "operations": [
                                "set"
                            ]
                        },
gioboa commented 5 years ago

Thanks @caleb15 , At the moment I'm working for manage all the fields. I'm studying Jira logic for every field, it's an hard work.

gioboa commented 5 years ago

@caleb15 do you have sprint field in the issue creation screen? In my Jira environment this particular field is locked.

caleb15 commented 5 years ago

@gioboa yep

gioboa commented 5 years ago

With this API I can retrieve all the sprints options. https://xxx/rest/greenhopper/1.0/sprint/picker In this field you have only the sprints relative to the project? There are some filters like only open sprints?

caleb15 commented 5 years ago

https://pastebin.com/4dxG8YQM

The sprint input box in jira when you expand it has a "Suggestions" and a "All sprints" category

gioboa commented 5 years ago

Available in v 0.14.0

caleb15 commented 5 years ago

it works. Thanks! :)