Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Cloud Automation to copy from customer field as approvers in team managed project

Andrew Chan May 23, 2024

I have tried many way of getting this to work and have no luck, appreciate if anyone can help in getting this to work using Additional field in Jira Automation. Here is the JSON for the build-in Jira customer field Approval.

"customfield_10150": [
{
  "id": "31",
  "name": "Accept User Requirements",
  "finalDecision": "pending",
  "canAnswerApproval": true,
  "approvers": [
  {
    "approver": {
      "accountId": "asdasdasdasdasdasdb0b8565b9ee",
      "emailAddress": "abc@xyz.com",
      "displayName": "ABC",
      "active": true,
      "timeZone": "Asia/zzz",
      "_links": {
        "jiraRest": "https://.....atlassian.net/rest/api/3/.....................
     "approverDecision": "pending"
  }
],
"createdDate": {
"iso8601": "2024-05-23T16:38:46+0800",
"jira": "2024-05-23T16:38:46.641+0800",
"friendly": "Today 4:38 PM",
"epochMillis": 171645656565641
},
"_links": {
"self": "https://........atlassian.net/rest/servicedeskapi/request/33123/approval/31"
}
}
],

1 answer

0 votes
John Funk
Community Champion
May 23, 2024

Hi Andrew - Welcome to the Atlassian Community!

This might be a bug in the system for copying people type fields in Team-managed projects. Take a look here where you can vote for and follow it: 

https://jira.atlassian.com/browse/AUTO-421

 

Andrew Chan May 23, 2024

Thanks for sharing, I am not even be able to add additional "Approver" in the built-in customfield_10150. And the API editmeta didn't show such field and is it even possible to add using Automation?

John Funk
Community Champion
May 24, 2024

Best advice I can give you is to use Company-managed projects and not Team-managed. 

Andrew Chan May 24, 2024

But Company managed projects do not support Approval flow and that's the reason why I had to use Team Managed project.

John Funk
Community Champion
May 24, 2024

Understood. You might consider using a JSM project as the intake for the issues and the approval process then. And once approved you could clone over to the JWM/business/software project. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events