Problem Statement
Whenever a user installs the marketplace application in Jira cloud, we need to send an app specific email to those users .
Suggested Solution
Once a day we will run a batch process that will use Atlassian License related API’s to fetch license related date and further Send app specific emails to those users.
Sample Output
Output for https://marketplace.atlassian.com/rest/2/vendors/1213530/reporting/licenses?hosting=cloud&startDate=2022-12-21 { "_links": { "self": { "href": "/rest/2/vendors/1213530/reporting/licenses?hosting=cloud&startDate=2022-12-21" }, "query": { "href": "/rest/2/vendors/1213530/reporting/licenses{?addon*,startDate,endDate,text,tier*,dateType,licenseType*,partnerType*,hosting*,status*,withAttribution,withDataInsights,lastUpdated,sortBy,order,offset,limit}", "templated": true }, "export": [ { "href": "/rest/2/vendors/1213530/reporting/licenses/export?hosting=cloud&startDate=2022-12-21&accept=csv", "type": "text/csv" }, { "href": "/rest/2/vendors/1213530/reporting/licenses/export?hosting=cloud&startDate=2022-12-21&accept=json", "type": "application/json" } ] }, "licenses": [ { "addonLicenseId": "37934629", "appEntitlementId": "5dc5f792-ea30-4724-8aac-b285ba5aa1a6", "appEntitlementNumber": "E-3YS-MWY-GTW-3Y9", "hostLicenseId": "37932334", "hostEntitlementId": "178754a6-1a32-42c3-863c-b5171f6df80a", "hostEntitlementNumber": "E-3YS-MQP-SFG-E68", "licenseId": "SEN-37932334", "addonKey": "com.empyra.auc.AutoUserCreator", "addonName": "CSV User Importer for Jira", "hosting": "Cloud", "lastUpdated": "2022-12-24", "licenseType": "EVALUATION", "maintenanceStartDate": "2022-12-22", "maintenanceEndDate": "2023-02-22", "status": "active", "tier": "Subscription", "contactDetails": { "company": "rajeshyede", "country": "Unknown", "region": "Unknown", "technicalContact": { "email": "rajeshyede288@gmail.com", "name": "Rajesh Yede" }, "billingContact": { "email": "rajeshyede288@gmail.com", "name": "Rajesh Yede" } } }, { "addonLicenseId": "37931454", "appEntitlementId": "ac9bb64a-e5ab-4809-8c42-2e95e3f84cbe", "appEntitlementNumber": "E-3YS-MN5-EMX-MJE", "hostLicenseId": "30827207", "hostEntitlementId": "fe48d4a2-a335-4e23-a925-adc43f58ecb0", "hostEntitlementNumber": "E-3XW-XVH-RUW-96X", "licenseId": "SEN-30827207", "addonKey": "com.empyra.bud.BulkUserDeleteforJira", "addonName": "Bulk User Delete for Jira", "hosting": "Cloud", "lastUpdated": "2022-12-24", "licenseType": "EVALUATION", "maintenanceStartDate": "2022-12-22", "maintenanceEndDate": "2023-01-23", "status": "active", "tier": "Subscription", "contactDetails": { "company": "swethamoorthyltd", "country": "India", "region": "APAC", "technicalContact": { "email": "swethamoorthy186@gmail.com", "name": "Swetha Moorthy", "state": "TN" }, "billingContact": { "email": "swethamoorthy186@gmail.com", "name": "Swetha Moorthy", "state": "TN" } } }, { "addonLicenseId": "37926893", "appEntitlementId": "b3bb04a3-e327-4984-8c46-73b1203d0750", "appEntitlementNumber": "E-3YS-M4M-WVE-KJN", "hostLicenseId": "29906352", "hostEntitlementId": "5d0e8a0a-6824-4b0b-8e0f-bc630b50bbae", "hostEntitlementNumber": "E-3XT-35F-ECT-HET", "licenseId": "SEN-29906352", "addonKey": "com.empyra.auc.AutoUserCreator", "addonName": "CSV User Importer for Jira", "hosting": "Cloud", "lastUpdated": "2022-12-23", "licenseType": "EVALUATION", "maintenanceStartDate": "2022-12-21", "maintenanceEndDate": "2023-02-11", "status": "active", "tier": "Subscription", "contactDetails": { "company": "deepika2001", "country": "India", "region": "APAC", "technicalContact": { "email": "deepika.n@trundl.com", "name": "Deepika Namburi", "state": "TG" }, "billingContact": { "email": "deepika.n@trundl.com", "name": "Deepika Namburi", "state": "TG" } } } ] }
Generic Email Template to be used to send emails
Estimated Effort : 32 Hours including testing and deployment