Forums

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

Automation for filling in fields

Pedro Henrique Barreto Carvalho April 20, 2022

Hi everyone,

 

I have a question.

I created a custom field that is inside a story, corresponding to those responsible for the child items, but I would like to assign the custom field to be autocompleted whenever I direct a responsible person to the child item. It's possible?

 

Example:

                    custom field - other responsible(history)

                     field responsible for the item (subtask)

After, filling out the responsible field, it must be filled in the custom field other responsible

 

3 answers

1 accepted

0 votes
Answer accepted
Filipi Lima
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 21, 2022

Hi, Pedro,

Welcome to the Atlassian Community!

From my understanding, you have a multi-user picker field on the Story where you'd like to maintain a list of all the assignees of the sub-tasks.

Could you provide a screenshot of the current rule you have?

My idea would be to trigger an automation when the sub-tasks have the assignee modified. When that happens, you have a rule to branch out on the parent to add the assignee of the trigger issue to the parent Story's custom field.

Cheers,

Filipi Lima

0 votes
Pedro Henrique Barreto Carvalho April 22, 2022

example.png

Pedro Henrique Barreto Carvalho April 22, 2022

@Filipi Lima I'm sending my flow screen(english)

  • value changes for
    • for father
      • then: change item fields(advanced)
Filipi Lima
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2022

Hi, Pedro,

On the "Então: Editar campos do item", instead of using the advanced options you should be able to achieve your goal by:

  • Clicking on Escolher campos a definir
  • Select the Demais Responsaveis field
  • Pick Add Demais Responsaveis from trigger issue
  • Make sure to select the checkbox "Adicionar aos valores existentes" (not sure on the exact translation).

image.png

I'm more familiar with the Data Center/Server automation, so there might be small differences but all these options should be available.

Pedro Henrique Barreto Carvalho April 25, 2022

Hi, Filipe Lima,

Thank for return.

as I use the project managed by the team, Jira does not let me choose the custom field, but only through the command code. Is it possible to do this via code?

Filipi Lima
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 25, 2022

Hi, Pedro, I'm unable to test this myself, but see if this works for you - see how I reference the triggerissue on it:

{
  "update": {
    "Demais Responsáveis" : [{
      "add": {
        "id":"{{triggerIssue.assignee.accountId}}"
      }
    }]
  }
}

 

And a couple links to learn more about it:

https://confluence.atlassian.com/automation/smart-values-993924860.html

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Pedro Henrique Barreto Carvalho April 25, 2022

Everything worked! amazing. Thank you for your help

Like Filipi Lima likes this
Filipi Lima
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 27, 2022

I'm glad to hear it!

Have a great day!

0 votes
Pedro Henrique Barreto Carvalho April 20, 2022

.

Suggest an answer

Log in or Sign up to answer