I habe a scripted field that returns a user. I configured the search template to userpicker.
Why can't i see this field in notification scheme if i try to choose a user-customfield?
Community moderators have prevented the ability to post new answers.
My current workaround is:
// Import needed classes // calculate needed user def userManager = ComponentAccessor.getUserManager(); def componentManager = ComponentManager.getInstance(); def customFieldManager = componentManager.getCustomFieldManager(); def targetField = customFieldManager.getCustomFieldObject("customfield_14521"); targetField.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(targetField), userManager.getUserByName("calculated-user-name")); return "calculated-user-name";
It's not really a good idea to update the issue from a script field.
You can watch/vote https://jamieechlin.atlassian.net/browse/GRV-430, it's more or less the same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not really a good idea to update the issue from a script field.
Why? What could be problems with this solution?
I'm not sure if i can wait for implementing GRV-430 (only one vote :D ) or do you have a priority-list or a approximately date when this could be implmented?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Custom Field Types have to implement the interface UserCFNotificationTypeAware in order for them to be selectable as a User Custom Field Value in a NotificationScheme. That may not be possible with a scripted field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are there any known workarounds? I need to send E-Mails on some events to the users of the scripted field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, the only workaround I can think of is implementing your own post-function which manually sends the mails to the users in that scripted field.
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.