@@ -137,15 +137,37 @@ def time_point(label="",sub_lap=False, percent=None):
137137 print user ,"is bypassing" ,extending
138138 bypasses .extend ( extending )
139139
140- overrides = {}
140+ overrides = defaultdict ( list )
141141 for user ,extending in WI .getForce ().items ():
142142 if not user in actors :
143143 print user ,"is not allowed to force complete"
144144 continue
145145 print user ,"is force-completing" ,extending
146146 bypasses .extend ( extending )
147- overrides [user ] = extending
148-
147+ overrides [user ].extend (extending )
148+
149+ if JC :
150+ force_complete_jira_string = "cmsunified please do force-complete"
151+ to_check = JC .find ({'text' : force_complete_jira_string , "status" : "!CLOSED" })
152+ for j in to_check :
153+ jira = JC .get (j .key )
154+ for c in jira .fields .comment .comments :
155+ if force_complete_jira_string in c .body :
156+ user = c .author .name
157+ prepid = jira .fields .summary .split ()[0 ]
158+ bypasses .update ( prepid )
159+ overrides [user ].extend ( prepid )
160+ break
161+ bypass_jira_string = "cmsunified please do bypass"
162+ to_check = JC .find ({'text' : bypass_jira_string , "status" : "!CLOSED" })
163+ for j in to_check :
164+ jira = JC .get (j .key )
165+ for c in jira .fields .comment .comments :
166+ if bypass_jira_string in c .body :
167+ user = c .author .name
168+ prepid = jira .fields .summary .split ()[0 ]
169+ bypasses .update ( prepid )
170+
149171 if use_mcm :
150172 ## this is a list of prepids that are good to complete
151173 forcings = mcm .get ('/restapi/requests/forcecomplete' )
0 commit comments