Forums

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

why the post function from JMWE is not working?

Nicolas Andika
Contributor
August 9, 2024

Dear all,

i want to ask that i want to set the post function to linked issue that match the jql that i wrote like thisScreenshot 2024-08-09 at 17.37.51.png

but when i check there is no error and the log is look like thisScreenshot 2024-08-09 at 17.38.58.pngScreenshot 2024-08-09 at 17.39.04.pngScreenshot 2024-08-09 at 17.39.09.png

what is actually happened guys? and how to fix it?

Thankyou

Regards,

Nico

2 answers

0 votes
David Fischer
Community Champion
August 9, 2024

Hi @Nicolas Andika 

the first thing I can see is that you're using issue.fields["Reporter"].accountId. I would replace that with:

issue.fields.reporter._accountId

Explanation:

- using "reporter" instead of "Reporter" guarantees that this will work even if your Jira base language is not English

- using _accountId removes the "accountId:" prefix that is automatically added to the "accountId" field

Nicolas Andika
Contributor
August 11, 2024

Hi @David Fischer 

i already replace it with your advice, but it still not working yet, any other option? 

Thankyou

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 9, 2024

HI @Nicolas Andika 

I only see and INFO post no error.

It even stats post-function success.

Where is the error?

Nicolas Andika
Contributor
August 11, 2024

Hi @Marc - Devoteam 

That is also im still figuring out, because the post function is not working when i jump to the issue

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2024

Hi @Nicolas Andika 

It might be that your conditional is wrong.

Could you try: {{ issue.fields.issuetype.name == "Story" }}

Nicolas Andika
Contributor
August 14, 2024

Hi @Marc - Devoteam 

i already change the jira expression the value of the reporter, 

thankyou

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events