Variables in task templates: Difference between revisions

From Planfix
Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
<pre>
You can use '''variables''' in the names and descriptions of [[tasks]]. A variable takes the form of a field from a task or other object, contained in double curly brackets.  
The translation of this page is done using machine translation technology.  
We apologize for any inaccuracies and errors.
</pre>


In the title and description of tasks, you can use different variables.
Example: the variable that stores the current date:
'''{{System.Today}}'''


Variables are added to task templates when creating or editing templates. When you create a task using a template, each variable's value at the time the task is created will be used in place of the variable.
Adding variables to task templates
In the interface for creating a template, there's a link above the task name that leads to a list of available variables:


== Adding variables ==
<screenshot>
 
 
Variables are added to [[Task templates]] when they are created or edited.
 
When a task is created using a template, the current value is substituted for the variable.
 
Above the task name there is a link to the list of available variables:
 
 
https://pic.planfix.ru/pf/yo/qxMo8F.jpg
 


Among the variables available are:
Among the variables available are:
 
about 30 system variables that let you display time, date, day of the week, month, and year, in various formats;
* about 30 system variables that allow displaying in different formats time, date, day of the week, month and year;
all variables having to do with the tasks, including variables for each custom field;
 
variables for each field of any directory that is used in task fields;
* all variables related to the task, including variables for each [[Custom (configurable) task fields| custom field]];
all variables having to do with the project each task is created in, including custom project fields;
 
all variables having to do with task counterparties, including any data from client cards;
* Variables for each props of any [[Directories | directory]], which is used in [[Directory record | task fields]];
all variables having to do with the parent task of the current task, including data from its counterparty or directories used in it.
 
* all variables related to [[Projects | project]] in which the task is created - including [[Custom (configurable) fields of the project | custom fields of the project]];
When you create a task using a template, each variable's value at the time the task is created will be used in place of the variable.
 
* all variables related to [[Contractor| contractor's]] tasks, including any data from [[Contact card | customer card]];
Examples of using variables
 
Variables can be used to number incoming requests:
* all variables related to the task of the current task, including data from the card of its counterparty or the directories used in it.
 
<screenshot>
 
When a task is created using a template, the current value is substituted for the variable.
And for getting requests with numbers in their name, regardless of how they were created:
 
 
<screenshot>
== Examples of using variables ==
 
For distinguishing between typical tasks in various projects:
You can use variables '''to number incoming applications''':
Using a custom project reference name field:
 
 
<screenshot>
https://pic.planfix.ru/pf/HC/tQ9ZPh.jpg
 
Getting tasks with project reference names:
 
And get applications with numbers in the title, regardless of the way they are created:
<screenshot>
 
 
For naming periodic tasks:
https://pic.planfix.ru/pf/b1/8QMeYS.jpg
 
<screenshot>
 
'''To distinguish between typical tasks that are in different projects''':
for setting intuitive names for periodic tasks:
 
Using the custom field Project code:
<screenshot>
 
 
Please note:
https://pic.planfix.ru/pf/oJ/6UOXQN.jpg
Variables are replaced with specific values one time when a task is created from a template.
 
If a task made based on a template is created as a Draft, the variables in the task will be replaced with values when the task is switched to working status.
 
Variables in tasks are available only in paid and premium accounts.
Get tasks with the project code in the title:
 
 
https://pic.planfix.ru/pf/Fp/CW3jFE.jpg
 
 
'''For the title [[How to make a recurring task? | periodic tasks]]: '''
 
 
https://pic.planfix.ru/pf/1X/lJ1re4.jpg
 
 
to get the visual names of periodic tasks:
 
 
https://pic.planfix.ru/pf/Cw/W2itTm.jpg
 
 
 
'''Note:'''
 
* Replacing a variable with a specific value occurs once, at the time the task is created from the template.
* If a task is created from the template in the status [[Draft]], the change of variables to the values ​​in it will occur at the time the task is transferred to one of the workers [[Task statuses | statuses]].
* Variables in tasks are available only in paid and premium accounts.





Revision as of 23:12, 16 July 2020

You can use variables in the names and descriptions of tasks. A variable takes the form of a field from a task or other object, contained in double curly brackets.

Example: the variable that stores the current date:

Template:System.Today


Variables are added to task templates when creating or editing templates. When you create a task using a template, each variable's value at the time the task is created will be used in place of the variable.

Adding variables to task templates In the interface for creating a template, there's a link above the task name that leads to a list of available variables:


<screenshot>


Among the variables available are: about 30 system variables that let you display time, date, day of the week, month, and year, in various formats; all variables having to do with the tasks, including variables for each custom field; variables for each field of any directory that is used in task fields; all variables having to do with the project each task is created in, including custom project fields; all variables having to do with task counterparties, including any data from client cards; all variables having to do with the parent task of the current task, including data from its counterparty or directories used in it.

When you create a task using a template, each variable's value at the time the task is created will be used in place of the variable.

Examples of using variables Variables can be used to number incoming requests:

<screenshot>

And for getting requests with numbers in their name, regardless of how they were created:

<screenshot>

For distinguishing between typical tasks in various projects: Using a custom project reference name field:

<screenshot>

Getting tasks with project reference names:

<screenshot>

For naming periodic tasks:

<screenshot>

for setting intuitive names for periodic tasks:

<screenshot>

Please note: Variables are replaced with specific values one time when a task is created from a template. If a task made based on a template is created as a Draft, the variables in the task will be replaced with values when the task is switched to working status. Variables in tasks are available only in paid and premium accounts.


Go To