Adaptavist Scriptrunner for JIRA 8.28.0 UI Fragments Bug

e-Dongyang_Liu June 27, 2024

Log. warn cannot be used for log output in the Provider class/script of the Show a web panel module in Fragments

 

企业微信截图_20240627181925.png

1 answer

0 votes
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 27, 2024

Hi @e-Dongyang_Liu 

 

Have you defined the logger and log level in your script ?

 

Advanced Logging (adaptavist.com)

 

Regards

Radek Dostál
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.
June 27, 2024

And what on that page explains the lack of "log" binding variable?

If anything, it specifically says:

The log variable is injected into every ScriptRunner inline script

 

At best, the "log" would be a different instance of a Logger, but it would still exist as a variable.

So I would say this sounds like a bug when strictly correlated with what the documentation states.

(Then again 'log' isn't listed as a binding variable on the Help popup, but depends whether that is hardcoded or loads whatever is in the bindings/map anyway. I don't see much of "use" out of a logger in there but still, strictly compared to the documentation it seems like a bug that Adaptavist should have a comment on.)

e-Dongyang_Liu June 27, 2024

I added the log variable, but it still cannot be printed. Please confirm if it is a bug!导入包.png输出.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events