-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
4.0.0, 4.0.2, 4.1.0
-
None
-
1
-
Severity 3 - Minor
-
Problem Definition
JSDSERVER-3232has been fixed on JSD version 3.1.2.- On JSD 4 and above, we are seeing similar log messages in the log file:
2019-04-04 03:53:06,880 SdOffThreadEventJobRunner:thread-3681 ERROR abc@abc.com xxx /rest/api/2/issue/ABC-100/transitions [c.a.s.p.a.modules.rulewhen.ServiceDeskCommentCreatedEventWhenHandler] isApplicableProject failed com.atlassian.servicedesk.api.BadRequestException: Error retrieving ProjectContext, project '12200' does not exist
Suggested Solution
The suggestion would be to delete the automation rules during the JSD project deletion; JSDSERVER-6324.
Workaround
The workaround consists in disabling directly in the database all the automation rules which are associated to projects which no longer exist. The steps are the following:
- Stop JIRA
- Backup the JIRA database
- Run the following query in the JIRA database
Note that this query was tested on a PostgreSQL database and that it might need to be slightly changed depending on the database type
update "AO_9B2E3B_RULE" set "ENABLED"='false' where "ID" in ( select r."ID" from "AO_9B2E3B_RSETREV_PROJ_CONTEXT" pc left join "AO_9B2E3B_RULESET_REVISION" rr on pc."RULESET_REVISION_ID" = rr."ID" left join "AO_9B2E3B_RULE" r on rr."ID" = r."RULESET_REVISION_ID" left join "AO_9B2E3B_WHEN_HANDLER_CONFIG" whc on r."ID" = whc."RULE_ID" where pc."PROJECT_ID" not in (select id from project));
- Start JIRA
- duplicates
-
JSDSERVER-6324 Deleting a JIRA Service Desk project will not remove Automation rule data in the database and will add a lot of noise to the JIRA logs
-
- Closed
-
- is a regression of
-
JSDSERVER-3232 Automation throws 'error.retrieving.project' WARN stack traces in the logs.
-
- Closed
-
- relates to
-
JSDSERVER-6324 Deleting a JIRA Service Desk project will not remove Automation rule data in the database and will add a lot of noise to the JIRA logs
-
- Closed
-
-
JSMDC-3966 You do not have permission to view this issue
[JSDSERVER-6341] This is a regression bug of JSDSERVER-3232
Remote Link | Original: This issue links to "JSDS-3966 (Bulldog)" [ 421053 ] | New: This issue links to "JSMDC-3966 (JIRA Server (Bulldog))" [ 421053 ] |
Link |
New:
This issue duplicates |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Needs Triage [ 10030 ] | New: Closed [ 6 ] |
Remote Link | New: This issue links to "JSDS-3966 (Bulldog)" [ 421053 ] |
Support reference count | New: 1 |
Affects Version/s | New: 4.1.0 [ 85506 ] | |
Affects Version/s | New: 4.0.2 [ 85505 ] |
Description |
Original:
On JSD 4 and above, we are seeing similar log messages in the log file: {noformat} 2019-04-04 03:53:06,880 SdOffThreadEventJobRunner:thread-3681 ERROR abc@abc.com xxx /rest/api/2/issue/ABC-100/transitions [c.a.s.p.a.modules.rulewhen.ServiceDeskCommentCreatedEventWhenHandler] isApplicableProject failed com.atlassian.servicedesk.api.BadRequestException: Error retrieving ProjectContext, project '12200' does not exist {noformat} |
New:
h3. Problem Definition
# # On JSD 4 and above, we are seeing similar log messages in the log file: {noformat} 2019-04-04 03:53:06,880 SdOffThreadEventJobRunner:thread-3681 ERROR abc@abc.com xxx /rest/api/2/issue/ABC-100/transitions [c.a.s.p.a.modules.rulewhen.ServiceDeskCommentCreatedEventWhenHandler] isApplicableProject failed com.atlassian.servicedesk.api.BadRequestException: Error retrieving ProjectContext, project '12200' does not exist {noformat} h3. Suggested Solution The suggestion would be to delete the automation rules during the JSD project deletion; h3. Workaround The workaround consists in disabling directly in the database all the automation rules which are associated to projects which no longer exist. The steps are the following: - Stop JIRA - Backup the JIRA database - Run the following query in the JIRA database (!) Note that this query was tested on a PostgreSQL database and that it might need to be slightly changed depending on the database type {code} update "AO_9B2E3B_RULE" set "ENABLED"='false' where "ID" in ( select r."ID" from "AO_9B2E3B_RSETREV_PROJ_CONTEXT" pc left join "AO_9B2E3B_RULESET_REVISION" rr on pc."RULESET_REVISION_ID" = rr."ID" left join "AO_9B2E3B_RULE" r on rr."ID" = r."RULESET_REVISION_ID" left join "AO_9B2E3B_WHEN_HANDLER_CONFIG" whc on r."ID" = whc."RULE_ID" where pc."PROJECT_ID" not in (select id from project)); {code} - Start JIRA |
Link |
New:
This issue relates to |
Link |
New:
This issue is a regression of |
Duplicate of https://jira.atlassian.com/browse/JSDSERVER-6324