Hello,
How can I use currentUser() function in custom field with multi-select?
Please refer the screenshot for an error I am receiving.
Probably, I have got the solution. I will change the custom field type(i.e create another custom field) to User selection and then I will be able to use currentUser() without any issue. I will update here once I can achieve this.
CurrentUser() return the profile ID of the user:
So you have to enter as values these IDs from all your users. When I used my username, or name I couldn't get the results. Only when I used my profile ID it provided with correct results.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
I tried your suggestion, but it did not work. I had first added the profile ID to allowed list values. Then, I checked the filter again but did not work.
But anyway, even if this solution works by following all the steps correctly, I will have to enter profile IDs into `developer` options. That means, during Jira ticket updation, the `developer` pick list will show the user IDs instead of names and it will not be understood by anyone.
Do we have any other solution? Objective is to get list of matching `developer` based tickets based on current user's name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Parth Bharadiya can't really say that I understand your business requirement. I know that a user who transition the issue, or make an action to it, has to choose from a list of developers. What common do these developers have? E.g.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does the field is a user picker type?
The currentUser() function will only work on users' type fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Samuel Gatica currentUser() will return the user's profile id. Of course its primary use would be with user type field, but as I stated in my answer, you could use it with other fields as well (e.g. text, single select, multi select).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct, but then the ID must be in the text, single select or multi select, otherwise the value will not match.
currentUser() does not return the name of the user but the ID
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.