JJupin provides a function currentUser() to get the current user.
Is there something similar for a project? Like currentProject() which returns the key of the current project?
Regards
Michael
By default, issue standard variables are pre-declared in SIL, such as project, which holds the key of the current project.
You can see more details in the documentation link below, under the Standard Variables section:
http://confluence.kepler-rominfo.com/display/SIL/Variable+Resolution
HTH
Alex
Thanks a lot Alex for the quick help.
Sometimes its just too easy :-)
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It seems like I cannot use the field for my purpose, because it variable is not initialized on the createIssue screen.
I wanted to restrict the issuetypes available for creation based on the project role a user has, based on this tutorial:
http://confluence.kepler-rominfo.com/display/TR/Forbidding+users+to+create+some+issue+types
Sadly, it only works with a hardcoded project string.
Can anyone help?
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.
Keep in mind that you can associate different scripts to different projects. So if you don't have multiple projects associated with the same script, the project will always be the same.
Having the ability to retrieve values from the screen in the init script is a feature we don't have yet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Florin,
Thanks for your suggestion, but we have several hundred projects and therefore creating and managing a huge number of scripts is not an option.
Regards
Michael
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.