Hi, can someone help? I tries to write code which will recurcivly check all blocked items from issueLinks. And can not get property correct. Seems I do not understand how I can send link to the item element inside the func.
Code example:
with GetStartDate=(this,getStrtDateFunc) ->
//this.issueLinks is undefined, and not clear how to fix???
with blockedBy = this.issueLinks.FILTER($.type = "Blocked" AND $.destination = this) :
with blockedEndDates = blockedBy.Map(b ->
WITH StartDate = $.getStrtDateFunc(b.source.issueLinks) : //Recursion
with result = GetEndDate(b.source, StartDate)://some custom logic as end of parrent will be start of child
result):
WITH now = TRUNCATE_TIME(NOW()) :
with LastBlockedDate = blockedEndDates.Max():
with LastStartDate = ARRAY(Now,LastBlockedDate).Max():
LastStartDate:
WITH StartDate = GetStartDate(this, GetStartDate) :
StartDate
the main issue in the: "this.issueLinks" it can not be returned. Seems issueLinks is variable which can not be accessed from the other Item.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.