Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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:


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
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

426 views 2 15
Read article

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