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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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,457,001
Community Members
 
Community Events
176
Community Groups

JMWE - callJira - how to store response?

Hello :)

I want to use JMWE filter - callJira for creating a new Jira Service Desk issue but I need also store response from API which is represented as JSON object with dump filrer. How can I do that and store somewhere response from Jira API with using Build-your-own (scripted) Post-function? Maybe you know better way to do that. Thank you for your time :)

1 answer

1 accepted

1 vote
Answer accepted

Hi @Mateusz ,

why do you need to use callJira to create a JSD request? Can't you just use the Create Issue(s) post-function for that?

@David Fischer _Appfire_ 

when I use Create Issue(s) post-function I can't set Customer Request type which is necessary for request to being viewable for Customer from Service Desk Portal :(

But you can. You just need to add the Customer Request Type field under the "Set fields of new issue" section:

image.png

Like Mateusz likes this

Thank you for that hint David :)

Probably I suggested known problem with no option for update Customer request type field in Set field value post-function and I thought that the same problem appears in Create Issue(s) post-function. This will solve my problem but I am still curious that there is answer to my first question?

Anyway, thank you @David Fischer _Appfire_  :)

Like David Fischer _Appfire_ likes this

Yeah, on Jira cloud, the Customer Request Type can only be set during the creation of the request, not after. Hence the limitation.

As for your initial question, I'm not sure I understand it. What exactly do you want to store (and where)? The callJira call, in your case, would return a full customer request object, what do you want to do with it? You can store it in a local variable:

{% set newRequest = "/rest/api/2/issue" | callJira(verb=("post"), ...) %}

and then you can access any attribute of that object.

Like Mateusz likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events