I have written a custom behaviour and this thing is just getting annoying by not working correctly.
The use of it is : For populating a custom field (single list) with mapped options(Locations) which are predefined inside the script in a Map<Account,List<Location>>. These options will be shown in the List only when the right Account is chosen!
So this script is tested in my test env. and everything was running as it should, without any issues (80% of the time). The issue here is that i am receiving the same error every time and its something that i dont know how to co-op. These errors are received also in test env.
Script1.groovy: 17: unable to resolve class com.tempoplugin.accounts.account.api.Account
@ line 17, column 1.
import com.tempoplugin.accounts.account.api.Account
^
Script1.groovy: 18: unable to resolve class com.tempoplugin.accounts.account.impl.AccountServiceImpl
@ line 18, column 1.
import com.tempoplugin.accounts.account.impl.AccountServiceImpl
^
2 errors
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 17: unable to resolve class com.tempoplugin.accounts.account.api.Account
@ line 17, column 1.
import com.tempoplugin.accounts.account.api.Account
^
Script1.groovy: 18: unable to resolve class com.tempoplugin.accounts.account.impl.AccountServiceImpl
@ line 18, column 1.
import com.tempoplugin.accounts.account.impl.AccountServiceImpl
^
Just to tell you that i have the Tempo Account plugin installed and working properly.
Is there something that maybe i am missing?
Thanks in advance
CM
Did you use the "@WithPlugin()" annotation ?
Yes... Here is a snap also!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it should be
@WithPlugin("is.origo.jira.tempo-plugin")
see https://scriptrunner.adaptavist.com/latest/jira/plugins/working-with-tempo.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I could give it a try! But this annotation corresponds to Tempo Timesheets plugin APP key as i see!
Should i also use this ? @PluginModule("Account") ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
see the link (scriptrunner doc) !
Do NOT add the @PluginModule("Account")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunatelly , it does not work properly again. even after the changes.
Any other thought?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...depends what is "...does not work properly..." :-)
Please be somewhat more precise when you raise questions!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"...does not work properly..." means that i am receiving the same errors as before!
If you have any more thoughts about this issue , feel free to post them. In any case though, thank you very much for your time!
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.