The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Set value of hidden custom field on "Create Service Desk Request" using Automation

tan.tran
January 14, 2021

Workflow:

1. User creates Service Management ticket. Ticket has hidden field with default value (example: "Parent")
2. Automation trigger "When issue is created", then action "Create Service Desk Request" of same project/request type.
3. Create new ticket with that hidden field set to "Finance"

 

Attempted to use the More Options with JSON, but getting error that is unknown field.jira1.PNGjira2.PNG

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Hana Kučerová
Community Champion
January 14, 2021

Hi @tan.tran ,

which type your hidden custom field have? Is it Group Picker (single group) or Select List (single choice) or something else?

tan.tran
January 21, 2021

It's just a text field.

 

1. Trigger: When ticket is created
2. Condition: If Request Type = $specificType
3. Action: Create Service Desk Ticket
   3a. Same request type/project

 

Is there a way to only create another service desk ticket of the same request type without causing a loop? Also how to set same reporter? Submit on behalf of forces us to choose a specific user.

tan.tran
January 21, 2021

I don't think for us setting the hidden field is really the issue. Just trying to prevent a loop of ticket creations.

Hana Kučerová
Community Champion
January 22, 2021

Hi @tan.tran ,

please check the rule's configuration item: Allow rule trigger. It this checkbox is unchecked, there shouldn't be any loop.

You can copy values of various fields from the original issue, something like this:

automation.png

tan.tran
January 22, 2021

It is unchecked, and we're using the action: Create service desk request, not create issue.

Hana Kučerová
Community Champion
January 22, 2021

@tan.tran 

Reporter

Please try to use smart value: {{reporter.accountId}}

Same request type

It seems to me it is not possible yet - you will need to use conditions like

  • if request type = A
    • Create Service Desk request with type A
  • else-if request type = B
    • Create Service Desk request with type B
  • ...
Like Ivan Bebek likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events