I am running the query quoted here:
Querying the Current JIRA Database
in Script Console, but I get: null
Scriptrunner version is 3.1.4
JIRA 6.4.9
Thanks in advance,
Looks that the Script Console only show results if you use return in the code, so instead of:
log.debug sb.toString()
I use
return sb.toString()
to show the results of the query.
Personally I use the built in method to query JIRA's internal tables . They replacing your connection declaration with this one. I cant say for sure it will work as it as I use pure java implementation.
import com.atlassian.jira.ofbiz.DefaultOfBizConnectionFactory;
Connectionconn
= new DefaultOfBizConnectionFactory().getConnection();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. Tried that but I still get null.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.