Skip to content

Working with Worklogs #367

Answered by manuelbcd
osokin asked this question in Q&A
Mar 18, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hello @osokin. I built a simple example to gather work-logs from jira issues and export them to excel file: https://github.com/manuelbcd/jira-logtime-exporter

let me invite you to have a look to the source code. Here you have an extract

       tp := jira.BasicAuthTransport{
		Username: cfg.Jira.Login,
		Password: cfg.Jira.Token,
	}

	jiraClient, _ := jira.NewClient(tp.Client(), cfg.Jira.Host)

	// Removed dateStart property since Jira API has a known bug. TODO: reactivate once the bug is fixed.
	// dateStart := int64(time.Now().Unix())
	// var op * jira.GetWorklogsQueryOptions = &jira.GetWorklogsQueryOptions{Expand: "properties", StartedAfter: dateStart}

	var op * jira.GetWorklogsQueryOp…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@osokin
Comment options

@manuelbcd
Comment options

@osokin
Comment options

Answer selected by osokin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants