Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
The Plugin People
Teams
, (opens new window)

Knowledge Base
  • How-to articles
    How-to articles
     This trigger is hidden
Results will update as you type.
  • Notification History tab does not show on issues
  • Problems with IMAP
  • Problems with POP
  • Slow Jira startup with PostgreSQL
  • Sorry, you can't create any issues right now, as you need to have access to a JIRA application to be able to create issues
  • You do not have permission to assign issues
  • How to change the event type of a notified event
  • Diagnose no inbound mail handled
  • JSD (Jira Service Desk) - Who is notified when?
  • HTML extraction method to Wiki mark up
  • Setting System Fields using Script Field Processor
  • Test case editor fails to load
  • MessageRemovedException in log files during email processing
  • Characters appearing as question marks
  • UI not visible after upgrading to version 3+
  • Default Project Mapping and unwanted inheritance causing inbound mail to be forwarded
  • JEMH is disabled on startup in Manage Apps
  • Configure JSD Customers for use with JEMH
  • Custom Field values are cached causing recipients to not receive notifications (JIRA 7.3.0 - 7.3.4 , JEMH 2.1.0 - 2.1.11)
  • Restrict commenting to one project
  • Foreign key constraint violation during Audit Event history purge
  • Request participants not sent JEMH notification
  • Handling out of disk space
  • Profile import timeout error
  • Zendesk integration
  • Outlook sending formatting
  • Attachment links added as comments, Jira Service Management/Desk
  • Incoming Auditing Actions Error Popup
  • Updating JEMH's issue event listener to listen for IssueEventBundle's (JEMH-6994)
  • Template Set Responsibility Devolution (JEMH-5403)
  • Support non-ascii characters in email addresses (JEMH-6431)
  • Custom Fields don't get added during creation phase causing creation notifications to not fire for User/Group field types. (JEMH-306)
  • Cant stop reporter being added as a watcher (JEMH-790)
  • Handle re-index failure during watcher setup (JEMH-7180)
  • Inline User Macros sometimes don't render (velocity 2.0 needed) (JEMH-5536)
  • "Stuck" emails in queues after post condition test (JEMH-5366)
  • Dealing with 'Undisclosed Recipients' (JEMH Server/DC)
  • Missing Methods in TemplateIssue Class since Jira 8.19.0
  • Why do FolderClosedException occur
  • Customer Permissions for Request Participants
  • User Anonymization Fails - SQL Server 2019
  • Maintaining JEMH Attachment Property Set values
  • Display Issue Notifications in Right To Left Languages
  • Jira Server/DC - when mail polling stops, fixing without a Jira restart
  • A3 BAD User is authenticated but not connected error message when using JIRA with Office365
  • JEMH not enabling on upgrade to Jira 8.13.x and 8.20.x LTS releases made after 23-MAY-2022
  • Using an inactive user with user creation enabled
  • Missing Created/Timestamp Columns Causing Problems
  • -1 Values for the "Comment count limit" and "Comment char length limit" in the Default Project-Mapping
    Calendars
You‘re viewing this with anonymous access, so some content might be blocked.
/
User Anonymization Fails - SQL Server 2019
Updated Feb 23, 2022

    User Anonymization Fails - SQL Server 2019

    Introduction

    User Anonymization is a feature in Jira (from Jira 8.7.0) which removes/changes personal user data in fields, issues, schemes and more. For more information on this feature see below:

    • https://confluence.atlassian.com/adminjiraserver/anonymizing-users-992677655.html

    JEMH extends this Jira feature as part of ‘Transferring ownership’, where users specified in JEMH Profiles, audit records etc are changed to the new given user or anonymized.

    Problem

    Anonymization task fails with error along the lines of:

    com.microsoft.sqlserver.jdbc.SQLServerException: The data types ntext and nvarchar are incompatible in the equal to operator.

    This error will show in the logs or on the UI, like below:

    Solution

    Fixing this issue requires access to the database and running a query to change the entity type to a valid one. As there are many entities used in JEMH as part of anonymization, we have put together a query which includes all of them. Using Microsoft SQL Server Management Studio (SMSS) you can create a new query on your database and execute the following query:

    Change ‘jiraschema’ to the name of your schema.

    ALTER TABLE [jiraschema].[AO_78C957_CONFIG] ALTER COLUMN REPORTER_USER_NAME NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_CONFIG] ALTER COLUMN FORWARD_USER NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_CONFIG] ALTER COLUMN PRIVILEGED_USER NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_CONFIG] ALTER COLUMN CUSTOM_EMAIL_FROM_ADDRESS NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_CONFIG] ALTER COLUMN CUSTOM_EMAIL_REPLY_TO_ADDRESS NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_AUDITEVENTS] ALTER COLUMN EMAIL_SOURCE_USER_KEY NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_AUDITEVENTS] ALTER COLUMN FROM_ADDRESS NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_NOTIF_SOURCE] ALTER COLUMN EVENT_USER_KEY NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_LSNR_PROJ] ALTER COLUMN JIRA_FROM_ADDRESS NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_LSNR_PROJ] ALTER COLUMN JIRA_REPLY_TO_ADDRESS NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_LSNR_PROJ] ALTER COLUMN NON_JIRA_REPLY_TO_ADDRESS NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_LSNR_PROJ] ALTER COLUMN NON_JIRA_FROM_ADDRESS NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_LSNR_CONF] ALTER COLUMN PRIVILEGED_USER NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_NAGCONFIG] ALTER COLUMN NAGIOS_REPORTER NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_REGEXPPROCCNF] ALTER COLUMN REPORTER NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_PROJCONFIG] ALTER COLUMN REPORTER NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_PROJCONFIG] ALTER COLUMN ASSIGNEE NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_PRJSCRIPTMAP] ALTER COLUMN REPORTER NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_PRJSCRIPTMAP] ALTER COLUMN ASSIGNEE NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_PRJDOMMAP] ALTER COLUMN REPORTER NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_PRJDOMMAP] ALTER COLUMN ASSIGNEE NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_PRJGRPMAP] ALTER COLUMN REPORTER NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_PRJGRPMAP] ALTER COLUMN ASSIGNEE NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_PRJKYWRDMAP] ALTER COLUMN REPORTER NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_PRJKYWRDMAP] ALTER COLUMN ASSIGNEE NVARCHAR(255) ALTER TABLE [jiraschema].[AO_78C957_WFRULE] ALTER COLUMN RUN_AS NVARCHAR(255)

    Now stop Jira, restart the database and start Jira again.

    The above query may not be enough for anonymizing admin users, as more JEMH lifecycle entities have admin user records for created and updated columns.

    If you find more ntext types in other tables, you can modify these queries. You will need:

    • The table name (e.g. AO_78C957_WFRULE)

    • The column name (e.g. RUN_AS)

     

    {"serverDuration": 10, "requestCorrelationId": "e88c9ba1b43e4f7abddc1fdd486d8c59"}