Script to check knowledge article version

Snow-Man
Tera Contributor

Hi everyone,

I have a UI action button that needs to be visible only when 

State of knowledge article is review and Article version is > 1.0 

 

Please provide me with the condition or script include whatever is the best way.

thanks in advance 

Snowman

 

 

 

 

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

This condition will do that. 

current.workflow_state=='review'&&current.version.version>1.0

The version field is a reference to the version table which contains a field named version, storing the value of the actual number, so that's why it's version.version

View solution in original post

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

This condition will do that. 

current.workflow_state=='review'&&current.version.version>1.0

The version field is a reference to the version table which contains a field named version, storing the value of the actual number, so that's why it's version.version