Config Automation to Use it
you need to prepare a project
then in the project settings configure a automation rule for it. the rule simple config like:
trigger: issue created or other you like.
action: add a Send web request,detail is below:
Web request URL: https://apps.tman.work/aafjc/rest/autoassigner
Headers (optional):Content-Type:application/json
HTTP method*: POST
Web request body: Custom data, detail like below:
{
"issue":"{{issue.key}}",
"severity":"S3",
"customerUser":"customerA",
"customerTimeZoneId":"Asia/Shanghai",
"issueCreated":"{{issue.created}}",
"currentTimeTimeZoneId":"Etc/UTC",
"fromWhichSystem":"Cloud",
"atlTenantId":"816adf5c-1014-****-****-61aa17099f25"
}
checked 【Wait for response】> 【Delay execution of subsequent rule actions until we've received a response for this web request】
In this custom data, Please refer to the table below for details:
field | value | explain | require or not | do you want to change? |
---|---|---|---|---|
"issue" | "{{issue.key}}" | use {{issue.key}} to get specific issue key | Require | No |
"severity" | The values that can be set are: “S1”,“S2”,“S3”or“S4” | This value represents the severity of the issue, and the app will allocate and calculate the assignee based on this value | Require | Yes |
"customerUser" | A string representing the customer's name | Used in the assign log to easily know which customer is assigned to | Require | Yes |
"customerTimeZoneId" | Custom TimeZone Id e.g.:"Asia/Shanghai". What is the time zone ID of your time zone, which can be referenced in the timezone list of the editing duty group | Indicates which time zone this customer belongs to. The app will perform certain rule matching calculations based on this time zone and the configured Duty Group time zone, in order to obtain the corresponding user in the group as the assginee | Require | Yes |
"issueCreated" | "{{issue.created}}" | use {{issue.key}} to get specific issue created time | Require | No |
"currentTimeTimeZoneId" | fixed value: "Etc/UTC" | Jira cloud time zone of the stored time is “Etc/UTC” | Require | No |
"fromWhichSystem" | fixed value: "Cloud" | App internal needs | Require | No |
"atlTenantId" | your "atlTenantId" value could find in assign log page like below picture | Represents the tenant ID of this app for this jira instance in the Atlas Jira Cloud | Require | Yes |
action 2: add a Assign issue,detail is below:
Assign the issue to:smart value.
User: {{webResponse.body.data.AssigneeUserKey}}