Quantcast
Channel: YouTrackYouTrack (JT) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 74845

JT-19611: Workflow collections clear the oldvalue on adding new values

$
0
0
Reporter Dmitry Krasilschikov (dima) Dmitry Krasilschikov (dima)
Created Apr 30, 2013 2:35:33 PM
Updated May 6, 2013 3:20:28 PM
STR:
  1. create 2 issues
  2. make the first one the parent of the second one# create 3 versions, e.g. '1', '2', '3'
  3. set the parent 'Fix versions' to '1'

Attach the workflow:
rule Add the new subtask 'Fix versions' to the parent 
 
when subtask of.isNotEmpty && Fix versions.added.isNotEmpty { 
  var parent = subtask of.first; 
  for each version in Fix versions.added { 
    message(version.name); 
    parent.Fix versions.add(version); 
  } 
}


Add the subtask 'Fix versions' - '2' and '3'.
The result - the parent issue has '2', '3' but expected '1', '2','3'.

Viewing all articles
Browse latest Browse all 74845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>