We want to create a new tag based on a view tag.
The function is:
public Label createViewLabel(java.lang.String name, java.lang.String description, DateTime time, boolean buildLabel, boolean frozen)
But tags can only be created based on the current time, which cannot meet the requirements
Can he use this to meet my needs?
public Label cloneViewLabel(Label source, java.lang.String name, java.lang.String description, boolean buildLabel, boolean frozen)
Clones the specified "View" label. This method creates the label on the server so a call to update() is not needed. View labels may only be cloned from other labels in the same view
Parameters:
source - the label to be cloned (it must be from the active view) name - the label name (may not be null) description - the label description (may not be null) buildLabel - true if the label is to be a "Build Label"
frozen - true if the label is "frozen" (a frozen label can not be moved from one revision to another)
Returns:
clone of this view label