Open Chhekur opened 3 years ago
Hi! Thank you for taking the time to create your first issue! Really cool to see you here for the first time. Please give us a bit of time to review it.
@Chhekur Can you provide the information
Thank you.
I have this same issue
I'm using Jira Cloud (which does not really have the concept of version, so not sure what extra info I could provide regarding that)
As for the code snippet
options := &jira.SearchOptions{
Expand: "changelog",
MaxResults: 100,
StartAt: 0,
}
query := fmt.Sprintf(
"project = '%s' AND issuetype in (Bug, Security, Story, Task) AND Sprint in openSprints()",
projectKey,
)
result, resp, err := jiraClient.Issue.Search(query, options)
When trying to print the Sprint property for any issue retrieved I get this:
(*jira.Sprint)(<nil>)
@romeufcrosa the main issue over here is, sometimes sprint actually comes under the customfields
so you have to parse unknown to get that info.
Hey,
I am very sorry that this issue has been open for a long time with no final solution. We work on this project in our spare time, and sometimes, other priorities take over. This is the typical open source dilemma.
To provide visibility, we created the Road to v2 Milestone and calling for your feedback in https://github.com/andygrunwald/go-jira/issues/489
The development will take some time; however, I hope you can benefit from the changes. If you seek priority development for your issue + you like to sponsor it, please contact me.
We will work on this issue indirectly. This means that during the development phase, we aim to tackle it. Maybe in a different way like it is currently handled. Please understand that this will take a while because we are running this in our spare time.
Thanks for using this library. If there is anything else you would like to tell us, let us know!
Describe the bug
Sprint is nil in the returned response for Issue
To Reproduce
Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include configuration, logs, etc. to reproduce, if relevant.
Expected behavior
Sprint should not be nil at least for Issues which are there in active Sprint