Forums

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

Automation to create new work items with field inputs based on smartvalue parameters

Kay Bickell
Contributor
November 11, 2025

A manual trigger has been created to generate a new work item. Before work item is created, the trigger requests user input to state if the work item is of Type A or B and creates a variable for that answer which is used as a smartvalue in the newly-created work item description.

The difficulty is that depending on the answer A or B, other work item fields need to be set differently.  Using an if/else does not work, as the variable/smartvalue does not appear to allow me to set fields based on whichever answer was picked - unless I am missing something barn-door obvious. 

Which is what I am hoping you lovely denizens of the forums might spot right out of the gate (and I will feel suitably ridiculous for failing to spot)

4 answers

1 accepted

0 votes
Answer accepted
Kay Bickell
Contributor
November 12, 2025

The answer, somewhat ridiculously, was to say that response "CONTAINS" A or B on the Else/IF statements - "Equals" wouldn't let it work.  I have no idea why.

1 vote
Michael Wohlgemuth
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.
November 11, 2025

Greetings, 

assuming im not overlooking something, this should be easy enough. 

The following automation does log different stuff based on the option chosen in a userinput (short text) on a manually triggered automation. You'd not use the log action of course, but the edit action to then set field values according to whatever they need to be set to, given the chosen option. 

Screenshot 2025-11-11 140020.png

Dick
Community Champion
November 11, 2025

Because @Michael Wohlgemuth expected and dealt with all possible user inputs (also false ones), I voted for this solution. Well done, Michael!

Kind regards,
Dick

Kay Bickell
Contributor
November 12, 2025

Unfortunately, this did not work out as hoped. Irrespective of the response chosen, the work item generated was only that which had been created under the final ELSE statement, as though neither option had been selected.

0 votes
Kay Bickell
Contributor
November 11, 2025

Thanks both - I did think of using this sort of thing, but then completely lost my mind when it was talking about comparing two values and couldn't get it to offer the options in the dropdown.  Will try it and see what happens

0 votes
Ashish Bijlwan
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.
November 11, 2025

Hi @Kay Bickell 

Please try this automation.

image.pngimage.png

Kay Bickell
Contributor
November 12, 2025

Okay, so I thought this would absolutely HAVE to work, but instead, with this set up of two If/Else options for responses A and B, the outcome was that no ticket was created.

 

If I changed the second option to Else, then when it generated the work item, it only ever generated the second option

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