I want to query my project for all issues where
customField1 != value(customField2) + value(customField3)
Is it possible to do this in a JQL query?
I tried "cf!=cf+cf", but that didn't work.
Scriptrunner has a scripted JQL function which could help as long as your custom fields are date, datetime or numeric fields.
You can try using Script Field provided ScriptRunner plugin. Here is code example to get diffenrence between two date custom fields:
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.fields.CustomField import java.sql.Timestamp /** * Get number of days between to customfields */ CustomField startDate = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Дата выдачи согласованного MD.050"); CustomField endDate = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("Дата выдачи в тестирование.План"); if ((startDate == null) && (endDate == null)) return "" long startDateInMls = ((Timestamp) startDate.getValue(issue)).getTime(); long endDateInMls = ((Timestamp) endDate.getValue(issue)).getTime(); if ((startDateInMls == 0) && (endDateInMls == 0)) return "" return "" + ( startDateInMls - endDateInMls)/(1000*60*60*24)
This plugin is avalable only for server version.
Hello Community, Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs