Interface CreateLinkCommand


public interface CreateLinkCommand
Command for creating linked work item
Since:
3.10.0
  • Method Details

    • role

      @Nullable LinkedWorkItem role(@NotNull String role)
      Adds the link. If the link already exists, it will NOT add another one. Links are the same, when target item and link role are equal. Link is also not created when the given item is same as this item.
      Parameters:
      role -
      Returns:
      Return created LinkedWorkItem
      Null if user doesn't have permission or if link already exist or try to link itself
    • revision

      @NotNull CreateLinkCommand revision(@Nullable String value)
      Set revision field of the created LinkedWorkItem.
      Parameters:
      value -
      Returns:
      this
    • suspect

      @NotNull CreateLinkCommand suspect(boolean value)
      Set suspect field of the created LinkedWorkItem.
      Parameters:
      value -
      Returns:
      this