/
Compare two fields with custom JQL
Compare two fields with custom JQL
This script helps you create a custom JQL to find issues where two specified fields do not match.
To use this script, enter a JQL query as a parameter, which should be a list of epics (first parameter). The script then identifies issues where the custom field (second parameter) does not have the same value as the corresponding epic.
Example usage (JQL query)
key in silJQLList("silJql_FieldValueDosentMatchEpic.sil", "Project = EX and type = Epic", "Fruit")
Script
string [] epics = selectIssues(argv[0]);
string matchField = argv[1];
string [] ret;
for(string e in epics) {
for(string i in allLinkedIssues(e, "Epic-Story Link")) {
if(%i%.%matchField% != %e%.%matchField%) {
ret += i;
}
}
}
return ret;
, multiple selections available,
Related content
Create custom JQL functions for nested issue reporting
Create custom JQL functions for nested issue reporting
More like this
JQL functions reference
JQL functions reference
More like this
Perform searches with LDAP
Perform searches with LDAP
Read with this
Display all issues linked to a given issue and link type
Display all issues linked to a given issue and link type
More like this
addIssuesToEpic
addIssuesToEpic
More like this
Hide time-tracking information
Hide time-tracking information
Read with this