Special Functions
Function
Signature
Meaning
Item
TrackerItemDto Item(Integer id)
Returns the tracker item with the specified id. For example, Item(123456)
Project
ProjectDto Project(Object idOrName)
Returns the project with the specified id or name. For example,Project(1) is the project with id == 1, Project("Demo") is the project with name == "Demo"
projects
List projects(Object... values)
Returns a list of projects according to the specified values. For example, projects(choiceList[6]) returns all projects, that are referenced in the choiceList[6] of the current item. projects(6378, 1542, 21746) returns a list of the projects with the specified ids (or names).
Tracker
TrackerDto Tracker(Object... idOrName)
Returns the tracker with the specified id or the tracker with the specified name in the specified project. For example, Tracker(1234) is the tracker with id == 1234, Tracker(project, "Bugs") is the tracker with name == "Bugs" in the current project, Tracker(Project("Demo"), "Tasks") or short Tracker("Demo", "Tasks") is the Tasks tracker in the Demo project.
trackers
List trackers(Object... values)
Returns a list of trackers according to the specified values. For example, trackers(subjects.{subject|subject.choiceList[5]}) returns all trackers, that are referenced in the choiceList[5] of all subjects of the current item. trackers(project, "Bug", "Task") returns a list of all Bug and Task trackers in the current project. trackers(Project("Demo"), "Customer Requirement Specifications", "System Requirements Specifications") return a list with the Customer - and System Requirement Specifications trackers of the Demo project
typeOf
String typeOf(Object object)
Returns the type of the specified object: ["User", "Group", "Role", "Project", "Tracker", "Item", "Option", "Object", "Array", "List", "Date", "number", "boolean", "string", "undefined"]
Was this helpful?