Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,995
Community Members
 
Community Events
168
Community Groups

Depending on custom field value populate another custom field with approver.

I have a custom field called Estimated Price, which has three options. 

1. [0-5000 USD]
2. [5000-50000 USD] 
3. [>50000 USD] 

What I want is the following Approvers field to be populated with a certain user depending on what option you choose for the Estimated Price custom field. 

Is this possible to achieve somehow? 

Best regards, 

Jesper

2 answers

0 votes

Hi, @Jesper Fransson !

You can try out Business Process Manager add-on to deal with it issue. 

  1. You need to create a Step with such form elements: dropdown or multi-choice and fill it with information. In your case 
    1. [0-5000 USD]
    2. [5000-50000 USD] 
    3. [>50000 USD] 

image.png

2. After that, set a Conditional step that will start depending on the certain option. And also feel it with information

3. After you fill in all data, set a multiple or single approval to the Conditional Step.

4. And the final, go back to the first step and set a Form Logic with when/then rule

image.png

I know, that it sounds a little bit difficult, so I suggest you get assistance from our product manager to 

Thanks alot for your input @Karyna Tyrnavska _SaaSJet 

However, I'm not interested in getting a new app solemnly for this purpose. 

0 votes

Hi,

You can try to create an automation rule that will update the Approvers field everytime the Estimated price is updated.

Hi Mohamed, 

Is it possible to have automation rules update fields in a form before you've submitted it? Can you create listeners? I've never seen this before. 

Thanks, 

Jesper

Hi Jesper,

No this is not possible with automation, it will update the issue once it is created

Hi Mohamed, 

I've tried to set up an automation rule for this with some custom JSON: 

{
     "update": {
         "Approvers": [
            {
                "add": { "accountId": "INSERT_ID"}
           }
      ]
   }
}

But I get:

"Error editing issues - GP-41 (Field 'customfield_10003' cannot appear in both 'fields' and 'update')"

Do you know what I'm doing wrong here?

Best regards, 
Jesper

Can you show all this step please

Can you try this

2022-09-23 10_27_37-Automation - The Jira of Champions.png

In the "choose field to set" just add the approvers fields and leave the more options blank

Since the field is a multi-user picker, the Approvers field already has a value since the Estimate Price option chosen requires 2 approvals, one approver is chosen by the user posting the ticket and the second approver should be set through this automation.  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events