I want to update multiple issues with one api call. Sometimes there is a new issue in the csv file without a JIRA ID. In this case I want that JIRA creates a new issue. Is this possible, or is Jira doing it automatically?
I will appreciate any suggestions
Thank you all
As far as I know, there is no feature that will automatically create an issue if you try to edit a non-existent issue.
I think you should simply just iterate over each issue in your csv:
Issue issue = getIssue(id);
if (issue != null) {
updateIssue(issue,data);
} else {
createIssue(data);
}
The only problem you may face is that the issue keys that Jira will auto-generate for you will differ from the ones in your csv, as you cannot control the key generation.
If you need some sort of sanity check to compare the issues in the csv with the Jira instance, you can save the keys from the issues you create in a map, mapping to the keys or ID's from the csv.
Thanks a lot. I'll test it later this week.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.