Hi,
I am trying to install web resource using script runner in my jira software test environement instance. However I am getting an error saying 'You need to configure at least one alternate resource directory before using a web-resource, see the documentation' & 'Could not find <tt>kb.css</tt> in configured resource directories:'.
I created one file 'kb.css' and put it under 'C:\Program Files\Atlassian\Application Data\JIRA\' location.
-> kb.css contains :
.cv-kb-portal-view .cv-kb-view-iframe-container .kb-view-iframe{
width: 100% !important;
}
.cv-kb-portal-view .aui-page-panel-inner.cv-kb-portal-view-inner{
width: 80% !important;
}
I have put this line 'JVM_REQUIRED_ARGS='-Dplugin.resource.directories=C:\Program Files\Atlassian\Application Data\JIRA\kb.css' in setenv.sh file as suggested in web resource documentation. I restarted jira instance several times but this seems taking no effect. I am still getting the same error as mentioned above.
I have entered below details in web resource :
Note : KB Window
Context : customerportal
Key : kb
Resources : kb.css
So how can I configure resource directory so my script file can be found?
I suspect you might need to escape the space character in the path you've given to the plugin-resource-directory parameter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Er, there very much is. Please re-read the path you gave us, there is a space in "Program Files"
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.
Right, so you see that there is a space in the path and what you said earlier is wrong. Try escaping it in the parameter.
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.
How have you escaped the space in the parameter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i finally found the mistake ....
my file kb.css is located on
'C:\Program Files\Atlassian\Application Data\JIRA'
then i just remove the \kb.css in the url :
C:\Program Files\Atlassian\Application Data\JIRA\kb.css
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.