Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Setting Customer Request Type in Create Post-Function


I'm attempting to set the customer request type of tickets in a specific workflow with a post-function upon create. I'm using the Set field value (JMWE add-on) function and I'm not sure how to write the specific customer request type value in Groovy. Just to make sure I tried with a raw value but of course that didn't work.

In case anyone has some great ScriptRunner ideas, we sadly don't have it yet.


1 answer

1 accepted

2 votes
Answer accepted

Actually, you can totally set the Customer Request Type to a raw value, you just need to know which value to use. Unfortunately, JSD doesn't have a consistent naming convention for customer request type IDs, so what you need to do is "test" the following Groovy script against an issue of the same request type as what you want to use in your post-function:

issue.get("Customer Request Type").toString()

This will give you the internal ID of that request type (which by the way is specific to a JSD project).

Thank you so much! I saw in the documentation about finding the ID (not that exact formula) but I couldn't figure out where to use it. It's a test of Groovy script, of course it'll work there. I really appreciate your help, thanks so much!

It is an old post, I know - but I need some help with it.


The above code results in something like this:


 As far as I can see, this String changes with every Issue.


If I use the following code, I get an ID back.

issue.get("Customer Request Type")?.id

-> 66 (Integer)



I added a set field value post function to the create issue step in the workflow. I tried to set one of those two values from above, but neither did work. What am I doing wrong?

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events