go-jira | Go client library for Atlassian Jira | REST library
kandi X-RAY | go-jira Summary
kandi X-RAY | go-jira Summary
Go client library for Atlassian Jira
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of go-jira
go-jira Key Features
go-jira Examples and Code Snippets
Community Discussions
Trending Discussions on go-jira
QUESTION
I am trying to login with Go Jira (Client) Using terminal
Command
...ANSWER
Answered 2022-Jan-04 at 11:21It seems like the library erquires settng the endpoint:
You will need to specify your local jira endpoint first, typically in your homedir like:
QUESTION
I try to get the date (2020-03-09) from "2020-03-09T08:09:40.000+0000" with this template line:
... [Ticket:{{- .key -}}:{{ .fields.resolution.name }}] starts {{ slice .fields.created 0 10 }} and ends {{ slice .fields.resolutiondate 0 10 }} ...
--> Invalid Usage: template: gojira:7:62: executing "gojira" at : error calling slice: list should be type of slice or array but string
Documentations says:
slice
slice returns the result of slicing its first argument by the remaining arguments. Thus "slice x 1 2" is, in Go syntax, x[1:2], while "slice x" is x[:], "slice x 1" is x[1:], and "slice x 1 2 3" is x[1:2:3]. The first argument must be a string, slice, or array.
Here the complete template I use with go-jira:
...ANSWER
Answered 2020-Aug-13 at 19:16I don't think you want the quotes around .fields.created as you'll end up with that string, not the date you want, so that needs fixed but shouldn't cause this error.
This full template (with a few minor changes) does work with the latest go at least:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install go-jira
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page