-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how i calculate the total Number of tasks depend the value from KEY/VALUE list #180
Comments
cfs[1] = Issue.where(traker_id: 2,custom_field_id: 10, value: "A").all.size cfs[3] = Issue.where(traker_id: 2,custom_field_id: 10, value: "B").all.size |
@AirTibu |
Hi, There some contradictions in your first and second post, but as far as I understand, you need this code: BEFORE SAVE
If you submit (save) an issue which is in tracker(2), then the code running. If I understand well, all custom_field is in tracker(2). Is it right? But I'm pretty sure, that is not good solution, because in this case you should use hard coded company names. In your second post you refer to tracker_id == 2 at all fields. Is it right? cfs[1] = Issue.where( traker_id: 2 ,custom_field_id: 10, value: "A").all.size |
when i Execute this formula |
Hi, In this case you need this code:
|
@float_value sum just only for tracker_id ==2 && project_id==1 |
i have tow tracker
Traker Result id[1]
--> cfs [1] tybe integer = total number of Tasks if ( cfs[10] tybe key/value list =A)
--> cfs [2] tybe float = total values cfs [20] if ( cfs[10] tybe key/value list =A)
--> cfs [3] tybe integer = total number of Tasks if ( cfs[10] tybe key/value list =B)
--> cfs [4] tybe float = total values cfs [20] if ( cfs[10] tybe key/value list =B)
Traker company [2]
CFS [10] tybe (KEY/VALUE LIST ) the values A,B,C Rate the company
CFS[20] TYBE FLOAT = The value of the bill
like this if i have in company total Tasks 950, total bill 1000$
Traker Result its will look
cfs[1] = 400 number of Tasks
cfs[2]= 300 $ total bills
cfs[3]= 550 number of Tasks
cfs[4]= 700 $ total bills
i hope if u can help me
The text was updated successfully, but these errors were encountered: