Anyone know of a way to populate a custom field, with the group of the current user?
Ex. When creating an issue, a customfield "Requesting Dept" is automatically populated with the group name of the current user? Either through a post function or another way?
Yes, I do it with a post function. I'm not aware of a generalised one in the plugin exchange, you'll probably need to write one.
If you do, bear in mind that you probably do NOT want to use all the groups a user belongs to (e.g. jira-users), and you need to handle multiple group memberships (i.e. "Requesting Dept" must be a multi-select list because a user could be in several departments)
You had to write your own plugin correct? Or could it be done as a fairly simple script within a postfunction, with say, the scriptrunner plugin?
Thanks for mentioning the multiple groups, I didn't even think it that far through yet. With that in mind, I'm thinking this is out of my league...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both - I wrote a plugin that happened to do it as part of something else, but the script runner should be able to do it too.
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.