-
-
Notifications
You must be signed in to change notification settings - Fork 471
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
Problem with example create #69
Comments
Hey @ypsman, |
its just like the Example. |
Does the Project |
Yes, the Fields are correct, its work with a Pyton script. |
Can you may post the Python script as well? With this i might be able to find the difference and maybe we hit a bug. |
Its just a simple script with the Jira Module(python3)
btw, its a german Jira Version, hope this Helps. |
Hi @andygrunwald, any news, or just a working example for me:) |
@andygrunwald I also encountered this issue. If you take a look to the official documentation of JIRA to create an issue (https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-create-issue), you may have to use something like:
|
@yageek thanks Thank you:) |
@andygrunwald |
Merged :) |
I have a similar issue with Reporter. Using any but the AccountID as the value fails to create the ticket with: Ideas? |
@andygrunwald Hey, great project by the way! I am having the same issue as @vbisbest with the reporter, is there any fix coming soon? Thanks! |
@tuckyapps this is an open source project and those of us maintainers work on these issues as we're able. You're welcome to submit a PR to update the example so that it is correct and I'll review it. Otherwise, if you need production support you're welcome to reach out to the maintainers and see if they're available for contracted support. |
@vbisbest @tuckyapps would you be so kind to specify jira version and type? Maybe I can bear a hand here |
Hey @tuckyapps and @vbisbest, What would be helpful are a few information about your setup, like:
If you need support in a timely manner incl. support, please reach out to me. PS: Thanks @benjivesterby and @manuelbcd for your support! |
Hi @andygrunwald @manuelbcd @benjivesterby , Thanks again, didn't mean it in a bad way.
I am not using the library because only to solve a specific need and I decided to go for Jira API this time. In case it helps, this is the code I am using that is working:
Again, great project, thank you for helping the community. Cheers, Santi |
Let me shed some light on this (if I understood the problem properly). @tuckyapps, @vbisbest you said you are unable to create issues when specifying reporter, using any username but accountID That is right since Jira cloud abandoned usernames (please have a look to official article https://confluence.atlassian.com/cloud/blog/2018/06/say-goodbye-to-usernames-in-atlassian-cloud ) In short: Jira cloud API is accepting only accountIDs in user-related issue fields. It is not a go-jira library bug. I hope it will help you. @andygrunwald , @benjivesterby : then the question is... do you want to change the examples to specify accountID instead of username since username is no longer accepted by jira-cloud? The accountID is compatible with both on-prem (old/new) and cloud versions. I would be more than happy to prepare and send that PR |
…porter by accountID instead of username since it is deprecated in Jira cloud
@manuelbcd Wow, thank you for your fast response! Thank you for providing the article. I'm wondering however, why does it works using the API then? Doesn't make sense, right? |
Hey @tuckyapps. Sorry, maybe I did not express myself properly. username field is not deprecated, it is a valid field within user structures in both Jira server and Jira cloud. However, you can't avoid accoundID in Jira cloud anymore (since 2008 due to GDPR compliance). That means you need to specify at least accountID... that makes redundant to specify also username, since accountID is enough and it is valid for both Cloud and Server versions. Did I clarify your question? If not, please tell it to me, I'm gad to discuss and learn Best. |
Hi @manuelbcd, Now I get what you said :) However, still wondering why it works using the API without the account id. Best, Santi |
It will work with Jira Server API but not with Jira Cloud API. If you are communicating with Jira Server API, you will be able to refer to users using only username field. If you are communicating with Jira Cloud API, you can't refer to users using usernema, you need to use accountID. But both (Server and Cloud) accepts accountID. Best. |
Hmm then I don’t get it, as I am using Jira cloud 🤔 |
If Jira Cloud is allowing you to create issues by specifying username without accountID it is probably because your project has a default assignee and reporter :) Please perform the folllowing test: |
Im trying to Connect with the Example to Jira and creating an Issue.
Getting this as Response
{"errorMessages":[],"errors":{"project":"project is required"}}
panic: runtime error: invalid memory address or nil pointer dereference
go version go1.6.2 linux/amd64
Jira 7.3 & 7.1
Im new to golang so a little hint what to do would be nice :)
The text was updated successfully, but these errors were encountered: