Two ways to update the Team field

Hello Community!

As we approach the new year I am trying to get a jumpstart on one of my Community New Year's resolutions. Specifically contribute to the community more through articles in 2024.


In my first contribution I offer up two ways of automatically the team field. I got the idea for this article while answering a question today so I thought I might extend it to a broader audience via this article.

The first method is using a post function on a transition and the second is using automation. The key, in both cases, is to leverage the team ID which is an obscure number that can be found in the URL of the team page.

Workflow Transition

Let's say that you want to update the team field when an issue is transition to a specific status. In order to do this you simply need to add a post function to the desired transition. The text & images below should help explain this process in more step-by-step detail. Note: This is only applicable to Company managed projects.

  1. Select project settings
  2. Select workflows
  3. Choose the edit (pencil icon) for workflow associated with your issue type.
  4. In diagram mode click on the transition you are interested in and in the model to the right select post functions.
  5. In the post function window click on add post function.
  6. In the next screen select the Update Issue Custom Field radio button.
  7. In the next screen choose Team as the field to be updated and in the value box enter the Team ID (the obscure number at the end of your URL). This is illustrated in the image below.
  8. Save and publish your workflow.
  9. Test everything out.



While the post function method and use case is rather specific and possibly limited, automation allows you to expand the potential cases considerably. This is because you can leverage different triggers in more importantly conditions under which you could set the desired team to the Team field. With that said, I will not focus on the various triggers or conditions since that isn't the primary focus of this article. Rather I will simply provide the syntax the action the action to set the Team field.

  1. Select project settings in the desired project and then choose automation.
  2. Click on create new rule and enter your desired trigger and conditions.
  3. For the action choose edit issue and then enter team in the field to be edited.
  4. Rather than selecting the Team from the drop-down value field choose the more option and enter the following JSON in the provided box.
{"fields":{ "Team":"332dd9fc-59d6-48e8-b882-4ae6580732df" }}

Save the rule and test it out!


Please share your thoughts and ideas in the comments so that others might benefit from community sharing!

Have a wonderful new year all!!


Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 30, 2023

Thanks for sharing. With the introduction of the new teams custom field this will become very useful for assigning tickets to specific teams. 

Rodolfo Romero - Adaptavist April 2, 2024

Is there a way to get the id of the team automatically based on its name that maybe is saved in another field?


Log in or Sign up to comment
AUG Leaders

Atlassian Community Events