...
...
...
<h3>Example 2</h3>
<p>The following line checks whether the <strong>Time Spent</strong> field contains any work logged on the ticket.</p>
<ac:structured-macro ac:name="code" ac:schema-version="1">
<ac:plain-text-body>
<![CDATA[if(isNull(assignee)) {
assignee = reporter;
}]]>
</ac:plain-text-body>
</ac:structured-macro>
<p>You can also use the <ac:link><ri:page ri:content-title="hasInput"/></ac:link> routine to check whether certain fields were filled out during a workflow transition. And among those fields you can also check the work logged in particular.</p>
<h2>Note</h2>
<p><ac:structured-macro ac:name="note" ac:schema-version="1">
<ac:rich-text-body>
<p>If <strong>isNull</strong> returns "true" the variable has no value attached. <strong>isNull</strong> returns "false" for <strong>zero</strong> for numeric variables or <strong>blank</strong> for character/string.</p>
</ac:rich-text-body>
</ac:structured-macro></p>
...
...
Info | ||
---|---|---|
| ||
This routine is available starting with SIL Engineā¢ 1.0. |
Syntax
isNull(variable)
...