Hello,
How can I use currentUser() function in custom field with multi-select?
Please refer the screenshot for an error I am receiving.
Hi @Parth Bharadiya
Please try the following:
= currentUser()
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.
Not working with `=` as well.
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.
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.
@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.
Does the field is a user picker type?
The currentUser() function will only work on users' type fields.
@Samuel Gatica _ServiceRocket_ 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).
It looks like you're new here. Sign in or register to get started.