Package javiergs.tulip.taiga
Class TaigaTask
java.lang.Object
javiergs.tulip.taiga.TaigaTask
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the assigned user identifier.longgetId()Returns the unique Taiga task identifier.intgetRef()Returns the human-readable task reference number.intReturns the current workflow status identifier.Returns the task subject/title.Returns the parent user story identifier.longReturns the Taiga entity version.toString()Returns a compact textual representation of the task.
-
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 idref- human-readable task reference numbersubject- task subject/titlestatus- workflow status idassignedToUserId- assigned user id; may benulluserStoryId- parent user story id; may benullversion- Taiga entity version
-
-
Method Details
-
getUserStoryId
Returns the parent user story identifier.- Returns:
- parent user story id, or
nullif 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
Returns the task subject/title.- Returns:
- task subject
-
getStatusId
public int getStatusId()Returns the current workflow status identifier.- Returns:
- task status id
-
getAssignedToUserId
Returns the assigned user identifier.- Returns:
- assigned user id, or
nullif unassigned
-
toString
Returns a compact textual 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
-