Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Greetings everyone,
I was playing around with the Scriptrunner HAPI syntax and got some logs in the Console log section. What I tried to do is to simply update an Issue and set some values for a multi group picker field, what I got was a correct update on that issue, but Scriptrunner also threw some strange logs. Does anyone know what this is about?
My HAPI code in this example was:
def issue = Issues.getByKey("DEMO-38")
issue.update {
setCustomFieldValue(12004, "demo-group-one", "demo-group-two")
}
(...)
2024-06-19 15:36:33,385 INFO [security.WorkflowBasedPermissionManager]: LINK_ISSUES granted by permission scheme and workflow perm granting LINK_ISSUES to Group 'jira-administrators'
Start of logs truncated as they exceeded 300 lines.
So I went into the Permission scheme of that project, and checked for the Link Issues permission. What I noticed is:
Any ideas what is happening there, and why?
Thanks in advance!
Hey @Marko Dev
The logging you see is unrelated to HAPI, you would see the same logging if you used the IssueService class from Jira directly, which is what HAPI calls into.
ScriptRunner will output any logs from the Atlassian application that occur during the script execution. The logs that get shown are a result of the Log4j configuration of the instance.
To quieten down the logs, you will probably want to tweak your Log4j configuration: https://confluence.atlassian.com/adminjiraserver/logging-and-profiling-938847671.html
Make sure to check the docs for your exact Jira version, as newer versions of Jira use Log4j2, and older versions use Log4j 1.
If you need further assistance with this, could you please raise a support ticket with us, so we can give more tailored advice?
Cheers!
Reece
@Marko Dev It is just an info log, maybe someone from adaptavist can give you more details on this.
Nicolas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.