Skip to content

Commit 86fa9a0

Browse files
committed
not so trivial
1 parent b5fb42f commit 86fa9a0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ Just remember to urldecode it. Save it and you should ready to go!
6969
## [Changelog](./CHANGELOG.md)
7070

7171
## Todo list
72+
- [ ] Color legend for calendar
73+
- [ ] Fetch holidays for other years than current
7274
- [ ] Refactor ShowError focus return
7375
- [ ] Open issue in modal if it's the only result?
7476
- [ ] Prompt `are you sure want to exit` on escape key

gojira/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func PrepareConfig() {
2727
JiraLogin: GetEnv("GOJIRA_JIRA_LOGIN"),
2828
JiraToken: GetEnv("GOJIRA_JIRA_TOKEN"),
2929
JiraAccountId: GetEnv("GOJIRA_JIRA_ACCOUNT_ID"),
30-
TempoUrl: "https://api.tempo.io/core/3",
30+
TempoUrl: "https://api.tempo.io/4",
3131
TempoToken: GetEnv("GOJIRA_TEMPO_TOKEN"),
3232
UpdateExistingWorklog: true,
3333
}

gojira/tempo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type WorklogUpdateRequest struct {
3636

3737
func (tc *TempoClient) GetWorklogs(fromDate, toDate time.Time) (WorklogsResponse, error) {
3838
// tempo is required only because of fetching worklogs by date range
39-
requestUrl := fmt.Sprintf("%s/worklogs/user/%s?from=%s&to=%s&limit=1000",
39+
requestUrl := fmt.Sprintf("%s/worklogs/account/%s?from=%s&to=%s&limit=1000",
4040
tc.Url, tc.JiraAccountId, fromDate.Format(dateLayout), toDate.Format(dateLayout))
4141
headers := map[string]string{
4242
"Authorization": fmt.Sprintf("Bearer %s", tc.Token),

0 commit comments

Comments
 (0)