Is it possible to set a custom field value on a transition screen using the behaviours plugin server side script and the function - formField.setFormValue(value)?
I want to set a custom field to the current/logged in user.
Thanks
If you need to store the value of the current user in a field, why not use this - https://jsutil.atlassian.net/wiki/display/JSUTIL/JIRA+Suite+Utilities+Workflow+Post-Functions#JIRASuiteUtilitiesWorkflowPost-Functions-UpdateIssueCustomFieldPost-Function
It is to populate on the next transition, so storing the previous user on last transition would be a problem with this solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I didn't understand. You need the value for the current user who is doing the operation to be filled in a custom field so that it gets stored. That is exactly that post function also is doing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem is the user doing the transition is not the one who did the last action ie the one that would be populated as current user on a post function - the next user then picks up the issue, at this point I want the field to get populated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is possible , But i would advice you to test if it works .for me formField.setFormValue(value)
did not work for priority field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
so what would the syntax actually be?
Something like : form<cf value>.setFormValue(current_user)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You will need to get the current user first the set the value using username
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the syntax for that also?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same issue, someone know the exact syntax i could use for that ?
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.