Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Plugin Development questions #3681

Laba42 ·
1)
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.
  • replies 1
  • views 582
  • stars 0
robinshen ADMIN ·
1) currentUser.getPassword() will return null for LDAP connection. QB never stores clear text password for security reason.
2) To access variables programmatically:
new VariableAccessor().getVar("some var").getValue();