-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
8.16.0, 8.20.0
-
8.16
-
9
-
Severity 3 - Minor
-
0
-
Issue Summary
Assigning a blocker end date after the blocked start date begins throws an exception at formatDateUTC
Steps to Reproduce
- Create two issues
- Make issue_A block issue_B through Jira dependencies;
- Configure Portfolio's dependencies to make blocked issues be scheduled after blocker issues;
- Auto-schedule both
- Verify that issue_B starts after issue_A completes;
- Modify the dates so that issue_B starts before issue_A
- Click to view the Dependency in the plan
Expected Results
Portfolio warns the user that the dependency is invalid;
Portfolio does not allow to commit the changes;
Actual Results
The below exception is thrown in a JavaScript exception:
Client Information User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36 Local Time: Thu Sep 05 2019 09:14:20 GMT-0400 (Eastern Daylight Time) Plugin Information Version: 3.x.0 System Information Jira Title: xxxxxxx Jira Version: x.x.x Stack Trace Uncaught Error: Date passed to formatDateUTC function is not valid Error: Date passed to formatDateUTC function is not valid at c (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-frontend-scripts/com.atlassian.jpo:jpo-wr-page-common-frontend-scripts.js:14:72823) at t.value (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-simple-plans-scripts/com.atlassian.jpo:jpo-wr-page-simple-plans-scripts.js:3:1008219) at Ri (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:42:61516) at ki (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:42:61311) at ji (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:42:65145) at Ba (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:42:84648) at Ha (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:42:85032) at Os (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:42:91569) at Ts (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:42:90949) at Ps (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:42:97361) at ze (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:42:10256) at kn (https://<redacted>/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-ba3we3/713005/169ccc9e29f29bf92dd6f17d99bf0fd9/3.7.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts/com.atlassian.jpo:jpo-wr-page-portfolio-frontend-vendor-scripts.js:42:30694)
Workaround
Alter the dates do that the blocker issue is guaranteed to end before the blocked starts.
- is related to
-
JSWSERVER-24869 Having invalidly formatted dates cause Plan to throw exceptions on formatDateUTC
-
- Gathering Impact
-
- links to
- relates to
-
JPOS-5227 Loading...