gioboa / jira-plugin

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

Workflow status differ from status field #27

Closed st-schneider closed 5 years ago

st-schneider commented 5 years ago

Issue Type: Bug

It seems that the plugin cannot find my username although I'm logged in with that username and I have an issue in progress. I even reassigned it to me with the plugin and it doesn't work.

Extension version: 0.9.1 VS Code version: Code - Insiders 1.29.0-insider (5f24c93878bd4bc645a4a17c620e2487b11005f9, 2018-11-10T00:26:25.769Z) OS version: Darwin x64 17.7.0

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (8 x 2800)| |GPU Status|2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled| |Load (avg)|3, 3, 3| |Memory (System)|16.00GB (0.03GB free)| |Process Argv|-psn_0_9435391| |Screen Reader|no| |VM|0%|
gioboa commented 5 years ago

Hi @bm-stschneider , the problem is that your working issue list is empty? The plugin search for issues assigned to you with status 'In progress' (status is configurable) Here the Jira jql: ${selected_project} AND status in (${statuses}) AND assignee in (currentUser()) ORDER BY status ASC, updated DESC

st-schneider commented 5 years ago

okay it was configured indeed, and has the same display name. is there a way to adjust it in the plugin? Or select it manually.

gioboa commented 5 years ago

Mmm, what do you mean with has the same display name?

st-schneider commented 5 years ago

in the workflow it is "in Arbeit" but it is displayed as status "in Progress" in jira issues.

gioboa commented 5 years ago

Please, can you attach a screenshot?

st-schneider commented 5 years ago

image

gioboa commented 5 years ago

It's a screenshot of Jira web application so I suppose it's not a VsCode plugin issue. :confused:

st-schneider commented 5 years ago

Well, it would be nice if I could adjust the working issue status of the plugin

gioboa commented 5 years ago

Now I understand. I take directly the status from Jira JSON response.I can check if there is some strange difference with some other status filed in the JSON.

UPDATE I suppose there is something strange in your Jira environment. I checked a little bit on google and the two statuses must be consistent. Unfortunately I didn't find how to solve it.

st-schneider commented 5 years ago

Ok I checked the REST call on status. And the name is 'In Progress' which schould be fine. I also added it in the config image The ticket is under the Status: In Progress view for the active sprint also but when I filter by status it is not found and also is not found as working issue.

gioboa commented 5 years ago

Try to search the ticket by id. When appear in the list you can also see the current status of the ticket. Is this In Progress?

st-schneider commented 5 years ago

Yes, it is 'In Progress'

gioboa commented 5 years ago

mmm, really curious issue. Are you the assignee of this ticket? Do you have any other ticket in the working issue list? If yes, which is the difference from this ticket and the others?

st-schneider commented 5 years ago
gioboa commented 5 years ago

I lost a little bit the focus of the problem. 😕 All tickets with In problem status have this issue?

st-schneider commented 5 years ago

it seems that the in progress status is not matched correctly. If I add for example reopened as in progress status for the working ticket that works in the statusbar. If I try to filter for tickets in the explorer with status, I have in progress multiple times but none matches the currently in progress ticket. image

gioboa commented 5 years ago

When you filter by status from explorer the plugin perform this query: project = ${project} AND status = '${status}' ORDER BY status ASC, updated DESC From working issue in the status bar exec this query: project = ${project} AND status in (${statuses}) AND assignee in (currentUser()) ORDER BY status ASC, updated DESC where ${statuses} is taken from workingIssueStatues setting Please try to perform this JQL to Jira web application to understand the origin of the issue. Thanks. 👍

st-schneider commented 5 years ago

Ok so the statuses from the api are not resolved correctly as it seems. The Status that should be 'In Arbeit' is also shown as "In Progress" but they do not match the status then. Could you add the statuses mechanic to the explorer filter maybe?

gioboa commented 5 years ago

Nice catch. :smile: Yes, I can add something like this. :+1:

gioboa commented 5 years ago

@bm-stschneider Hi, in the v 0.10.4 I added a new setting to solve this kind of problem. It's a workaround for your issue. Let me know. Thanks. 👍

st-schneider commented 5 years ago

Wonderful 👍