Well, I would then recommend that you progressively add lines in your formula until it stops working.
Which version of JMCF and JIRA are you using?
Also, I assume you are displaying the field in the view issue screen (at least for debug purposes)?
You should start by simply returning "1" to make sure your field is correctly configured, and build from there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm using JIRA 5.2.2 and JMCF 1.5.5.
Field is in the view screen and it works with the formula:
int prazo= issue.get("customfield_12042");
org.apache.commons.lang.time.DateUtils.addDays(issue.get("customfield_10160"), prazo);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, formula is:
int qtdPFs = issue.get("customfield_12042");
int prazo = -1;
if (qtdPFs <= 10) {
prazo = 12;
} else if (qtdPFs > 10 && qtdPFs <= 20) {
prazo = 25;
} else if (qtdPFs > 20 && qtdPFs <= 30) {
prazo = 40;
} else if (qtdPFs > 30 && qtdPFs <= 40) {
prazo = 50;
} else {
prazo = new Double(Math.pow(value,0,36) *30).intValue();
}
org.apache.commons.lang.time.DateUtils.addDays(issue.get("customfield_10160"), prazo);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The formula is not showing in your question...
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.