zimovid

Untitled

Jan 31st, 2023
616
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const epicBoardId = 'afb7cab7-c931-4c6a-9a4a-ded2060469cd';
  2. const analyzeColumn = Items.get('de00a458-1a23-4174-a48a-2d5cf50ed5af');
  3.  
  4.  
  5. if (Current.board.id === epicBoardId) {
  6.   Items.onMove = function (obj) {
  7.     try {
  8.       if (obj.type === 'Task') {
  9.         // If task moved from "Analyze" to "In Progress"" column
  10.  
  11.         if (obj.up().id === analyzeColumn.id) {
  12.           const currentTask = Items.get(obj.id);
  13.           // тут нужно обработать список субтасок для currentTask
  14.         }
  15.  
  16.       }
  17.     } catch (e) {
  18.       Notifier.error('Unknown error!');
  19.       console.error(e)
  20.     };
  21.   };
Advertisement
Add Comment
Please, Sign In to add comment