Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Is there any way to get the list of issue based on combination of both the first level (1st option) and second level (2nd option) of cascade select custom field?

Structure Formula

Cristian Caravan
Contributor
June 3, 2022

Good afternoon everyone,


I am new to Structure Formula but I am wondering if it is possible to have in structure a field that calculates based on past 6 months completion rate when all items will be resolved (burndown).

So for example:

Team A (Jira Group, i have a special field that extracts that info) resolved 17 items in the past 6 months which results estimate date finished of the left 24 items in DATE. 

and another formula that simply says when (based on Estimates) is Team A going to deliver 

 

Thank you in advance

Ionut Caravan

1 answer

0 votes
Luca Miceli
Contributor
July 23, 2015

try this search:

customfieldname in (1st option, 2nd option)

Firoz Khan
July 24, 2015

As per the code level Is there any way to get the list of issue based on combination of both the first level (1st option) value (i.e. "XYZ") and second level (2nd option) individual group value (i.e. "ABC")? List<Issue> issues = new ArrayList<Issue>(); SearchService searchServive = ComponentAccessor.getComponent(SearchService.class); final SearchService.ParseResult parseResult= searchServive.parseQuery(authenticationContext.getLoggedInUser(), (myJql.toString())); SearchResults searchResults = searchServive.search(authenticationContext.getLoggedInUser(),parseResult.getQuery(), PagerFilter.getUnlimitedFilter()); issues = searchResults.getIssues(); for (Issue issue : issues ) { HashMap<String, Option> hashMapEntriesCF = (HashMap<String, Option>) issue.getCustomFieldValue(customfield); if hashMapEntriesCF != null) { Option parentOpts = hashMapEntriesCF.get(null); Option childOpts = hashMapEntriesCF.get("1"); if(hashMapEntriesCF .size()>1){ log.info("Parent Group from CF "+ parentOpts.getValue().toString()); log.info("Child Group from CF "+ childOpts.getValue().toString()); log.info("Parent Group - Child Group ("+ parentOpts.getValue()+"-"+childSoln.getValue()+")"); ArrayList<Issue> existIssueArray1 = (ArrayList<Issue>)hashMapEntriesCF .get(parentOpts.getValue());// its working fine log.info("Exist Parent Group Issue Array "+existIssueArray1); ArrayList<Issue> existIssueArray2 = (ArrayList<Issue>)hashMapEntriesCF .get(childOpts.getValue());// its not working and getting null log.info("Exist Child Group Issue Array "+existIssueArray2 ); ArrayList<Issue> existIssueArray3 = (ArrayList<Issue>)hashMapEntriesCF .get(parentOpts.getValue()+"-"+childOpts.getValue());// its not working and getting null log.info("Exist Parent Group - Child Group Issue Array "+existIssueArray3); } } }

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events