Hi All
Is there a plugin which allows us to set notifications/alerts whenever a said custom field is updated in a Jira issue?
Is there a way we could achieve this in Jira?
Thanks and Regards,
Jenin C M
then you can write listener(you van write using groovey script runner plugin) and implement you login on issue update event
for your reference, sample code will be something like
public void issueUpdated(IssueEvent event) { ComponentManager componentManager = ComponentManager.getInstance() MutableIssue issue = componentManager.getIssueManager().getIssueObject(event.getIssue().getLong("id")) VersionManager versionManager = componentManager.getVersionManager() IssueChangeHolder changeHolder = new DefaultIssueChangeHolder(); try { List changeItems = event.getChangeLog().getRelated("ChildChangeItem"); Iterator iter = changeItems.iterator(); while (iter.hasNext()) { GenericValue changeItem = (GenericValue) iter.next(); if ( changeItem.get("field") == "Found in Version") { issue.setAffectedVersions([versionManager.getVersion(issue.getGenericValue().project, changeItem.get("newstring"))]); } if ( changeItem.get("field") == "Target Version" ) { issue.setFixVersions([versionManager.getVersion(issue.getGenericValue().project, changeItem.get("newstring"))]); } } Map actionParams = EasyMap.build("issue", issue.getGenericValue(), "issueObject", issue, "remoteUser", issue.getAssignee(), "dispatchEvent", Boolean.TRUE) ActionResult aResult = CoreFactory.getActionDispatcher().execute(ActionNames.ISSUE_UPDATE, actionParams) } catch (GenericEntityException e) { log("Error: "+e); } }just you need to modify the above code as per your requirement
using issue update event on notification scheme you can send notifications/alerts
check this doc
https://confluence.atlassian.com/display/JIRA/Creating+a+Notification+Scheme
or
you can write a listener and can send notifications from Issue Update event
Hi Ram,
Thanks for the response!
But my requirement is different here, I need to get a notification when a specific custom field is updated but not for rest of the fields. Its like setting an alert for a specific custom field.
Regards,
I have the same problem. Did you find a solution?
Jenin, Jan
Please check out our add-on https://marketplace.atlassian.com/plugins/net.vacom.jirassimo/server/overview
You can precisely configure it to fire notifications only on specific field being changed
Cheers,
Vladimir
I have this exact problem, anyone found a solution?
anyone find a solution? i'm having the same problem
It looks like you're new here. Sign in or register to get started.