Forums

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

Auto populate Team field when created a ticket

Thierry Bouvet
Contributor
February 1, 2024

Hello everybody,

I want to auto populate the Team field in Jira Service Management when a client has created a new ticket.

The team is depending on the demand type.

For example :

  • if demand type is "xx" : Team = a
  • if demand type is "yy" : Teams = b

 

Can you help me please ?

1 answer

1 accepted

2 votes
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 1, 2024

Hi @Thierry Bouvet 

Where have you created the Team?

Is this an Advanced Roadmap (Plans) team, or a team created from the Teams menu in the main toolbar?

If this is the later, this won't work.

When is the demand type set on the ticket, on creation?

Then create an automation rule.

  • Trigger: Issue Created
  • IF/ELSE condition
  • in the IF condition, check value of the field demand equals XX
  • Edit action, this is a advanced JSON action

    example:

    {
    "fields": {
    "customfield_10100":"773"
    }
    }

    Where the custom field id is the id of the field Team in the system and the value 773 the value of the team created.

Repeat in an ELSE clause for the other team with the same steps, using the other team values.

Thierry Bouvet
Contributor
February 1, 2024

Hi @Marc - Devoteam 

Thanks for your reply.

It's a Team created from the Teams menu in the main toolbar.

Demand type is set on the creation :

2024-02-02_07h52_45.png

Can you explain me how to do an ELSE clause please ? I don't find this option in cloud automation.

Thanks

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 2, 2024

Hi @Thierry Bouvet 

As condition there is an IF/Else option, this is the option to use.

https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#If-else-block 

 

Thierry Bouvet
Contributor
February 2, 2024

Thanks @Marc - Devoteam 

All is ok !

Suggest an answer

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

Atlassian Community Events