Adding phone number web-item

mitsuplit December 11, 2013

I have to get a phone number of an user. For this I have to get a http request passing the variable ${profileUser} as parameter. How can I do that?

<web-item key="custom-user-hover-details" section="system.user.hover.links" weight="100" >
    <label>${profileUser}</label>
    <link></link>
  </web-item>

2 answers

1 accepted

1 vote
Answer accepted
mitsuplit January 1, 2014

I solved the problem using a servlet.

1 vote
Bharadwaj Jannu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 12, 2013

where you want to get the phone number of user? but before that you need to store the phone number of user in some table of jira but jira is not giving that facility to add the phone number to a user. Instead it provide Key Value to add as a property.

mitsuplit December 15, 2013

I solve the problem getting the profileUser in a servlet :)

mitsuplit January 28, 2014

I get from a http get method.

Mihail February 27, 2020

@Bharadwaj Jannu , you can easily store it as additional attribute in cwd_user_attributes. Or in some active-objects table of your plugin, if you prefer.
@mitsuplit , thanks greatly for that idea! I was roaming around that user-hover web-item about a day, trying to fit phone number there, in links.

Suggest an answer

Log in or Sign up to answer