Issue links in formula func

Ilya Smolkin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 19, 2024

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.   

1 answer

0 votes
Ilya Smolkin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 20, 2024

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.   

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events