Forums

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

JMWE post function adding a Component

Fletcher Wu February 24, 2021

My work is about to transition from Jira Server to Jira Cloud and I'm trying to setup our workflows again on Cloud. We use JMWE for our workflow post functions. The behavior that I'm looking for, is when a specific user creates a Bug ticket, add the Component. My conditional execution returns True, however it does not add the component when the user creates the ticket. This is the line:

{{issue.fields.project.key == "NAR" and issue.fields.issuetype.name == "Bug" and issue.fields.reporter.accountId == "accountId:557058:aba2a307-a570-4b7b-b7eb-16343b24d023"}}

Any advice would be appreciated, thank you.

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 24, 2021

This looks correct. Did you try refreshing the issue after a few seconds? On Jira Cloud, post functions run asynchronously, after the issue is created. 

Also, did you try without the conditional execution, to make sure the rest of the configuration is correct?

Fletcher Wu February 24, 2021

Hi David, I did wait a few minutes after like you suggested however it didn't appear. Also I tried without the conditional execution, and it also did not work. But the only thing else it is doing is adding the value PX to the current ticket.

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 24, 2021

Did you check there is no trailing space after PX in the post function configuration? And that there is indeed a component named PX in the project, and that its name also doesn't include a trailing space?

Fletcher Wu February 24, 2021

I checked both and they're both without any trailing spaces. There is a component named PX as well. 

Fletcher Wu February 26, 2021

This is resolved, i actually did not publish after saving! 

Suggest an answer

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

Atlassian Community Events