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 client ip and host address in jira when creating an issue

metinbulak
August 1, 2019

I want to write groovy script to get client ip adress but no information found in google.

some code I found is :

HttpServletRequest request = ServletActionContext.getRequest();
String ipAddress = request.getRemoteAddr();

import java.net.InetAddress;
localhost = InetAddress.getLocalHost();
log.info "My local machine name | IP address is : " + localhost
log.info "Only IP Address : " + localhost.getHostAddress()

 

this code is not I am looking for

How to get client ip address in groovy script or plugin in jira?

 

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events