Hi, i find some posts, but did not find a real answer to it, so...
How can we set a default value in a custom field, depending on the user that is logged in ?
i also cannot set the user group by default, like user is automatically set to reporter field.
anyone any idea ?
Wel, i found it as a payed plugin.
And its getting a bit expensive to add plugins each time atlassian missing a feature that should be standard for such a tool. but good news is there is a free alternative... hope this works also...
https://marketplace.atlassian.com/apps/1218755/mygroovy?hosting=server&tab=overview
I suggested/proposed Jira for my company, but i cannot propose new additional prices to our management each week and each time i try to configure/setup jira.
Running into all those issues and additional fees, i hope it was a good choice. :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You can do it if you are on Jira Server/Data Center. You would need to use an app like Power Scripts or ScriptRunner.
If you want to use the Power Scripts add-on, then you would create a Live Field with a code like this:
if (userInGroup({"jira-users"}, currentUser()) {
lfSet("customfield_10120", "your value");
}
You can read more about Live Fields here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I suppose you refer when creating the issue. Using ScriptRunner you could create a postfunction. Something like:
def currentUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
def isInGroup = ComponentAccessor.groupManager.getUserNamesInGroup(equipoQaUsers).contains(currentUser);
CustomField yourField = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_XXXXX");
if (isInGroup){
yourField.updateValue(....)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sounds good. Thx.
Yes when creating an issue.
Never added script. i suppose we can in cloud version ?
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.