No such property

Heryclles Henrique do Nascimento March 22, 2023

Hello, I'm having trouble running the following script in the scriptrunner console

“Issues.getByKey('CSSTST-95').comments.last().isPublic()”

 Captura de tela 2023-03-22 155412.png

Work with Jira Service Management (adaptavist.com)

In some documentation from Adaptavist it says that this should work, but it always gives me an error.

Has anyone faced a similar situation?

1 answer

0 votes
Reece Lander _ScriptRunner - The Adaptavist Group_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2023

Hey :)

The docs you link to are for our HAPI scripting feature, this is only available in ScriptRunner 7.11.0 and above.

Based on your screenshot, it looks like you are not running that version.

HAPI makes scripting drastically simpler, when you can upgrade, I would recommend giving it a try.

Cheers!

Reece

Suggest an answer

Log in or Sign up to answer