Description do not work for Command Tasks

Hello,

When creating a command task, I’m unable to use $Description$ from the Command Task.

Notice that $Description$ returns empty:

I’m able to use $EffectiveUsername$ and $EffectiveUsername$ into my scripts when attaching a Credential to it just fine:

I believe that $Description$ returns empty because as Command Tasks can be associated to Remote Connections it parses the Description from there and not from the Command Task itself, but I would like to know if there’s other workaround.

The only workaround I could find so far is creating a Terminal (Custom Connection) and create a Custom Command, but it parses the Description from “Terminal (Custom Connection)” and the Credentials from the Command Task itself, which is strange.

I’m running RoyalTSX 6.2.1.

Hi Eduardo,

If you want to use a value from the task itself instead of the context connection, you can prefix the token with this.

For example: $this.CustomField1$ will resolve the value of the Custom Field 1 from the task instead of the context connection.

Can you test this using $this.Description$ to see if this leads to your desired effect?

More information on this topic can be found here:

https://docs.royalapps.com/r2023/royalts/advanced/tokens.html

Best regards,

Christoph