Hi All,
I want to prepopulate the jira security level field based on user roles/group . Can someone please provide me a sample java script which does something similar ?
Thanx in advance :)
Community moderators have prevented the ability to post new answers.
Here is my shot at it. I wanted to attempt it after I saw your question in my previous post.
There might be an easier way or you probably figured it out yourself. But have a look if you haven't ;)
Thank you .. Its a really helpful tutorial :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to use rest - see http://docs.atlassian.com/jira/REST/latest/#id2475676.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can we use velocity and javascript together ? like #if ($authcontext.user.inGroup('developers'))
...I dont know much about using rest .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah you can do that but if you want to use velocity you need to create a new custom field type, or hack the existing ones. The javascript solution is less invasive.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am able to set the security level using javascript in the field description , however i am not able to check the group of the current user . How can i get the current users group in my script ?
thanx :)
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.