Method, path | Query parameters | Body | Response | Notes |
---|
POST /rest/actonic-gdpr/1.0/data-cleaner-template/-1 | "-1" template ID, always static for quick user anonymization template | Code Block |
---|
{
"id":-1,
"name":"User Anonymization template (user1→user2)",
"jql":"",
"objects":["summary", "description", "comment","history", "creator","reporter", "assignee","comment-author", "attachment-author", "worklog-author", "watcher", "vote", "customfield_10107", "customfield_10216", "customfield_10612", "customfield_10401", "customfield_10613", "customfield_10204", "customfield_10203", "customfield_10403", "customfield_10402"],
"notificationType":"none"
} |
| 200: Code Block |
---|
{
"id":-1,
"enabled":false,
"isDraft":false,
"name":"User Anonymization template (user1→user2)",
"jql":"",
"objects":["summary", "description", "comment","history", "creator","reporter", "assignee","comment-author", "attachment-author", "worklog-author", "watcher", "vote", "customfield_10107", "customfield_10216", "customfield_10612", "customfield_10401", "customfield_10613", "customfield_10204", "customfield_10203", "customfield_10403", "customfield_10402"],
"dataRulesCount":0,
"notificationType":"none",
"notificationParameters":{},
"issueCount":0,
"isDeleting":false
} |
| Update template for new anonymization process. Use :id "-1" for quick user anonymization template |
PUT /rest/actonic-gdpr/1.0/data-cleaner-template/rules | none | Code Block |
---|
{
"templateId":-1,
"enabled":true,
"name":"User Name replacement",
"searchType":"user",
"searchString":"user1",
"replaceType":"user",
"replaceString":"user2"
} |
| 200: Code Block |
---|
{
"id":1,
"templateId":-1,
"enabled":true,
"name":"User Name replacement",
"searchType":"user",
"searchString":"user1",
"replaceType":"user",
"replaceString":"user2"
} |
| Add a rule for user name replacement from “user1” to “user2”. It should be repeated for all the anonymized users. |
PUT /rest/actonic-gdpr/1.0/data-cleaner-template/rules | none | Code Block |
---|
{
"templateId":-1,
"enabled":true,
"name":"User Display Name replacement",
"searchType":"plain",
"searchString":"User A",
"replaceType":"plain-text",
"replaceString":"User B"
} |
| 200: Code Block |
---|
{
"id":2,
"templateId":-1,
"enabled":true,
"name":"User Display Name replacement",
"searchType":"plain",
"searchString":"User A",
"replaceType":"plain-text",
"replaceString":"User B"
} |
| Add a rule for display name replacement from “User A” to “User B”. It should be repeated for all the anonymized users. |
PUT /rest/actonic-gdpr/1.0/data-cleaner-template/rules | none | Code Block |
---|
{
"templateId":-1,
"enabled":true,
"name":"User Email replacement",
"searchType":"plain",
"searchString":"user1@users.com",
"replaceType":"plain-text",
"replaceString":"user2@users.com"
} |
| 200: Code Block |
---|
{
"id":3,
"templateId":-1,
"enabled":true,
"name":"User Email replacement",
"searchType":"plain",
"searchString":"user1@admin.com",
"replaceType":"plain-text",
"replaceString":"user2@users.com"
} |
| Add a rule for email replacement from “user1@users.com” to “user2@users.com”. It should be repeated for all the anonymized users. |
PUT /rest/actonic-gdpr/1.0/data-cleaner-template/rules | none | Code Block |
---|
{
"templateId":-1,
"enabled":true,
"name":"User mention replacement",
"searchType":"plain",
"searchString":"[~user1]",
"replaceType":"plain-text",
"replaceString":"[~user2]"
} |
| 200: Code Block |
---|
{
"id":24,
"templateId":-1,
"enabled":true,
"name":"User mention replacement",
"searchType":"plain",
"searchString":"[~user1]",
"replaceType":"plain-text",
"replaceString":"[~user2@users.com]"
} |
| Add a rule for user mention replacement in text fields from “[~user1]” to “[~user2]”. It should be repeated for all the anonymized users.
|
GET /rest/actonic-gdpr/1.0/data-cleaner-template/anonymizer/custom-anonymizers | none | none | 200: Code Block |
---|
[
{
"id":1932425934,
"pluginName":"GDPR (DSGVO) and Security for Jira",
"name":"Shared Objects (dashboards owners, filter owners, projects leads, component leads)"
}
] |
| Get a list of registered anonymizers, provided by Actonic or 3rd party apps. We will use it for built-in anpnymization post functions which process shared objects, like filters, dashboards, etc. |
POST /rest/actonic-gdpr/1.0/data-cleaner-template/post-function | none
| Code Block |
---|
{
"name":"Custom anonymizer",
"rules":"",
"functionType":"custom-anonymizer",
"anyRuleEnabled":true,
"parameters":{"sourceUsers":"user1","targetUser":"user2","anonymizerIds":"1932425934"},
"templateId":-1
} |
| 200: Empty response | Add post-function to launch shared object anonymization after the main anonymization process |
PUT /rest/actonic-gdpr/1.0/data-cleaner-template/task | none
| Code Block |
---|
{
"templateId":"-1",
"type":1
} |
| 200: Code Block |
---|
{
"id":1,
"templateId":-1,
"creator":"admin",
"createDate":"Aug 19, 2020 7:06:09 PM",
"duration":0,
"startDateLabel":"",
"status":0,
"taskType":0,
"meta":
{
"rules":{"25":"User Name replacement","26":"User Display Name replacement","27":"User Email replacement","28":"User mention replacement"},
"users":{"sourceUsers":"user1","targetUser":"user2"},
"other":{"numberOfRules":4.0,"numberOfFields":12.0}
},
"taskCurrentNum":0,
"taskTotalNum":0,
"taskAffectedNum":0,
"foundObjectsCount":0,
"taskMessage":"Task queued"
} |
| Add a task to start a search or anonymization by a given template |