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
4,297,507
Community Members
 
Community Events
165
Community Groups

ScriptRunner request type and listener for transitions

Hi,

Sorry that I created a discussion instead of a question, but the questions portal is not working.

I have two simple questions, but I couldn't find any documentation to help me solve them:

1. How can I create a Request with Customer Request Type (JSM)

2. How can I catch a transition with Script Listeners?

Any help is well appreciated, thank you.

Daniel

1 answer

0 votes

Hmm, odd, what do you mean by "not working"?   The questions portal is the same thing as the discussions, it's just a different type of post in a (hidden) field.  I'm just curious, if you have a problem with Community posts, the Atlassian Community team will want to know, to see if they can fix it.

Anyway, back to the question:

1. I'm not sure what you are asking about here.  The easy answer is "log in as a customer, click create, and fill in the fields", but I suspect you're asking about something else.

2. Transitions fire events.  Listeners listen for events and do things when they catch them., so all you need to do to "catch a transition" is set up your listener to listen for the right event!

Hi Nic,

About the community error, it just keeps loading forever:

Screen Shot 2022-06-03 at 12.47.35 PM.png

I already tried clearing the cache, different browsers (FF, Safari, Chrome, Chrome Mobile) and I have the same issue

About my questions:

1. *How can I create a Request with Customer Request Type (JSM)* with Script runner, both questions were related to ScriptRunner. I want to do it first in the Console, then implement the code in a post function or a Script Listener.

Clarifying my question here: I want to create a Request including the Customer Request Type, I already have the code to create a regular issue, but I couldn't find a way to add the Request Type, hope it helps.

2. In the listeners I just found 'Issue Created' and 'Issue Updated', I'm guessing that the Event I need is 'Issue Updated', but this even can be triggered when the user updates a field, transition, change the assignee, etc. My question here is if there's a way to filter all Update events but 'Transition'.

Thank you, I'm a big fan BTW :)

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you