Hello! I make the program like this,I want get the number through the countIssues(jql),but in fact I get “0”
String version;
Number plantask;
Version = V5.8.1
jql = "project = PRJ AND issuetype in (Improvement, 'New Feature') AND fixVersion = 'version'";
plantask = countIssues(jql);
Hi,
this should solve your problem
https://confluence.kepler-rominfo.com/display/SIL/countIssues
For the search query, please use apostrophe(') instead of quotes(") and double backslashes(\ \ )for escaping characters (instead of a single backslash).
When you set value to string you have to encapsulate it in quotes. Also when you try to "inject" a string into another string you have to use string concatenation. Try this:
String version; Number plantask; version = "V5.8.1"; jql = "project = PRJ AND issuetype in (Improvement, 'New Feature') AND fixVersion = '"+version+"'"; plantask = countIssues(jql);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.