-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example how to set a due date #339
Comments
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. |
@030 Try one of these format strings in https://github.com/nortonlifelock/jira/blob/1687038936ca93cf4a856970d669484c58bd0b7c/const.go#L44 |
@benjivesterby I tried that, but it does not work. Perhaps the example could be extended with a working example? |
@030 I'll see what I can do. It's been a bit since I've had a production JIRA to play with, but I'll try and setup something against my own instance and get back to you. Theoretically though it should only be a formatting issue, but since Due Date is a default field for JIRA I believe you can also just assign a time.Time formatted using the format string jira.Issue{
Fields: &jira.IssueFields{
Duedate: time.Now().Add(time.Hour*24).Format("2006-01-02T15:04:05.999-0700"),
},
} Fair warning though, I did not try this code. |
@030 Hey Ben, did this solve your problem? If yes, it would be a good idea to add this to the example directory. |
When creating the issue the
https://go.dev/play/p/bq_2AVmlCmC I'm not quite sure why the date string needs to contain escaped quotes though. Maybe a copy and paste from the MarshalJSON function? Definitely looks like a bug 🤷 Line 385 in 1e16435
|
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. However, there is news: We are kicking off v2 of this library 🚀To provide visibility, we created the Road to v2 Milestone and calling for your feedback in #489 The development will take some time; however, I hope you can benefit from the changes. What does this mean for my issue?We will work on this issue indirectly. Final wordsThanks for using this library. |
I tried to set a Duedate as field:
but I do not seem to get the right format.
The text was updated successfully, but these errors were encountered: