The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get User full name or first name in confiform

Dhiraj Kr_ Gupta
Contributor
June 8, 2024

I have a confiform field definition with field User. So i got user name as Snow, John2 [ABC] Or aa0000. I want only to return John in Display or confiform table view.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

Dhiraj Kr_ Gupta
Contributor
June 13, 2024

I want something different 

For eg

Full name : Medved, Alex23[CONF]

Output : Alex 

I am trying this in the formula but getting error Unknown operator at position 46

IF(EMPTY(SPLIT(REGEXREPLACE([entry.Name.fullName], "\[?\d+\]?", ""), ",")[1]), 

   SPLIT(REGEXREPLACE([entry.Name.fullName], "\[?\d+\]?", ""), ",")[0].strip(), 

   SPLIT(REGEXREPLACE([entry.Name.fullName], "\[?\d+\]?", ""), ",")[1].strip()

)

Dhiraj Kr_ Gupta
Contributor
June 13, 2024

FirstName= [entry.Name.fullName.replaceAll('.*?\\,\\s(\\D+?)(\\d|\\s|\\[).*', '$1')].

FirstName=[entry.OwnerName.split(", ")[1].replaceAll('[\\d\\[\\]]', '').split(' ')[0]]

It is also not working after IFTTT macro

TAGS
AUG Leaders

Atlassian Community Events