Class TaigaTask

java.lang.Object
javiergs.tulip.taiga.TaigaTask

public class TaigaTask extends Object
Represents a Taiga task.

Tasks are work items typically associated with a user story inside a Taiga project. Tasks may also be assigned to users and moved through workflow statuses.

Version:
2026.05.27
  • Constructor Details

    • TaigaTask

      public TaigaTask(long id, int ref, String subject, int status, Long assignedToUserId, Long userStoryId, long version)
      Creates a new Taiga task representation.
      Parameters:
      id - unique Taiga task id
      ref - human-readable task reference number
      subject - task subject/title
      status - workflow status id
      assignedToUserId - assigned user id; may be null
      userStoryId - parent user story id; may be null
      version - Taiga entity version
  • Method Details

    • getUserStoryId

      public Long getUserStoryId()
      Returns the parent user story identifier.
      Returns:
      parent user story id, or null if not attached
    • getId

      public long getId()
      Returns the unique Taiga task identifier.
      Returns:
      task id
    • getRef

      public int getRef()
      Returns the human-readable task reference number.
      Returns:
      task reference number
    • getSubject

      public String getSubject()
      Returns the task subject/title.
      Returns:
      task subject
    • getStatusId

      public int getStatusId()
      Returns the current workflow status identifier.
      Returns:
      task status id
    • getAssignedToUserId

      public Long getAssignedToUserId()
      Returns the assigned user identifier.
      Returns:
      assigned user id, or null if unassigned
    • toString

      public String toString()
      Returns a compact textual representation of the task.
      Overrides:
      toString in class Object
      Returns:
      string representation of the task
    • getVersion

      public long getVersion()
      Returns the Taiga entity version.

      This value is required for some PATCH/update operations.

      Returns:
      entity version