I want to access from a qb plugin with REST on JIRA.
Since both systems (QB & JIRA) are connected via LDPA I would have to be able to access the JIRA with the qb user data. Is it possible to pass the password?
User currentUser = Context.getUser();
HttpGet method = new HttpGet(url);
HttpHost targetHost = new HttpHost(JIRASERVER, 8080, "http");
final CredentialsProvider credsProvider = new BasicCredentialsProvider();
credsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials (currentUser.getName() , currentUser.getPassword()));
returns Access denied.
2)
How can I access a Varaibale in qb plugin
the variable "JiraServer" is defined in the root configuration
Context.getConfiguration().getVar("JiraServer")
Context.getConfiguration().getVar("JiraServer").getValue()
both returns null.