Setting a custom field with each comment

We want to update custom field every time non jira user add comment to an issue by email. Can it be done with JEMH Plugin?

We've tried setting custom filed from project mapping, but that only works in issue creation and not in commenting.

3 answers

1 accepted

This widget could not be displayed.

Hi Andy.

The way we solved it for the moment is by creating a looped transition that sets the custom field (e.g. "User Replied = true") on Post Function.

Than we set "On Comment Workflow" to activate that transition.

Unfortunately this feature does not support "global transition", so we have to configure this transition on every step.

If you find better way to accomplish the same behavior we need, I would like to know.

Thanks.

This widget could not be displayed.

Hi Tamir,

The Project Mappings are primarily there to initially route / setup issues. Once created, the 'mapping' of the email is not needed because the issue key will identify the exact issue to comment on, so mappings don't rerun.

JEMH custom field defaults also only apply on create only, as overwriting issue values isn't generally desirable.

This sounds like something relating to workflow though? Its an area of JEMH that hasn't got many features (yet). Can you expand on your use case, just setting some status field?

Would the 'change' you desire be specific to a particular project, group of projects, global?

This widget could not be displayed.

Hi Tamir, I have a question:

When you say "Then we set "On Comment Workflow" to activate that transition."

What are you doing there to activate a transition.

I need to activate a transition when a user comments in the issue, is something similar?

We are using JEMH plug-in to do that. JEMH is an advanced email handler to deal with incoming emails (and do much more). When a user send an email to a Jira inbox that is set to work with JEMH you can configure it to perform a workflow transition.

I don' t know of any way to perform a transition when a user comment in issue on Jira. May be escalation service (groovy runner built in script) can help here - but I'm not sure exactly how.

JEMH has one auto advance field, the doco refers the Resolved,Closed issue to Reopen transition on comment. If you dont need that and want to drive a transition from stateX to stateY when JEMH receives a message, just replace the given workflow statuses and advancement step?

eg:

onCommentWorkflowAdvanceAction: Start Work

onCommentAdvanceFromState: Waiting on Customer

These fields restrict JEMH workflow attempts to that specific scenario, does it work for you? You can also use the status ID and transition ID to avoid any 'collisions' with other workflow entries of the same name.

https://thepluginpeople.atlassian.net/wiki/display/JEMH/Reopen+an+Issue+On+Comment

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

76 views 0 1
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you