Add-JiraRemoteLink Allows Adding Remote Links #424
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Picket the "patch zip" from #375 and created a extended version and a pull request.
Description
This adds the Add-JiraRemoteLink function from #375 in a massive extended version. Due the original one only allowed url and txt attribute, I used the format defined by Get-JiraRemoteLink. For that I also created a ConvertFrom-JiraLink as counterpart to the existing ConvertTo-JiraLink.
Motivation and Context
I do not understand why there was a format change of the incoming JSON, as done in Get-JiraRemoteLink, in this case useful anyway but that's an other discussion and I wanted the change to be compatible to the existing stuff as possible.
As the previous discussed original, this only allows adding additional remote links, which is also reflected in the naming of the function. For that the function verifies that there is no Id or RestUrl in the object, because that would only make sense for updating existing remote links and could confuse the user of this function.
Types of changes
Checklist