How does jira get the current username and password
ey,
If you are trying to do this using the Java SDK, it uses the ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser() method.
Refer to the docs at
https://docs.atlassian.com/software/jira/docs/api/7.6.1/index.html?com/atlassian/jira/component/ComponentAccessor.html
https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/security/JiraAuthenticationContext.html
Hope that helps.
@zhaoyawei You would need to elaborate what you mean. Answering your question, Jira gets a password from user input. But I guess, it is not what you are asking.
Click button in the jirra system I want to pass the user's name and password,I was jira's secondary development call interface requires a user name and password.
It looks like you're new here. Sign in or register to get started.