web-pal / chronos-timetracker

Desktop client for JIRA. Track time, upload worklogs without a hassle.
https://chronos.web-pal.com
MIT License
299 stars 66 forks source link

The project search should also work with the project key #67

Closed nerdware-timmmi closed 6 years ago

nerdware-timmmi commented 6 years ago

Expected Behavior

The project search should also work with the project key.

Actual Behavior

Currently you can only search for the project name

Steps to Reproduce the Problem

  1. Search for project names, e. g. Customer Success Management
  2. Ticket then has the project id as ticket id, for example CSM-1
  3. Project search for "CSM" brings but no result

Specifications

VladimirPal commented 6 years ago

@JimTim We use jira api for search functionality, and jira do not allow to make search using only project key, i think we can't handle this issue

nerdware-timmmi commented 6 years ago

Where are the projects list fetched in this source code?

https://docs.atlassian.com/DAC/rest/jira/6.1.html#d2e3008 At least the Projectkey / ProjectId is mentioned here.

VladimirPal commented 6 years ago

JQL query creating here https://github.com/web-pal/chronos-timetracker/blob/develop/app/sagas/issues.js#L147 Request here https://github.com/web-pal/chronos-timetracker/blob/develop/app/utils/api/issues.js#L44

nerdware-timmmi commented 6 years ago

Ah I see. But I mean the project search / project combo select box on the top left. I doesn't mean the issue search. Thx

VladimirPal commented 6 years ago

@JimTim I got it now, we'll fix it

nerdware-timmmi commented 6 years ago

Perfect, thank you very much

VladimirPal commented 6 years ago

2.5.4 @JimTim Confirm please if it works

nerdware-timmmi commented 6 years ago

Works