Please help me figure out how to listen for changes in a task from the event "CustomFieldUpdatedEvent"
I've been sitting for 3 days now and can't get any sense from my script.
With the simple event "Issue updated" it works perfectly.
But I want to narrow the circle and start only from "CustomFieldUpdatedEvent"
My beginning of the code working with a simple event "Issue updated" :
import com.atlassian.jira.event.type.EventDispatchOption
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.link.IssueLink;
import java.text.SimpleDateFormat
import java.util.Date
import java.time.temporal.ChronoUnit
import java.time.ZoneId
import static java.time.DayOfWeek.*
def change = event?.getChangeLog()?.getRelated("ChildChangeItem").find {it.field=="myCFname"}
if (change){
def issue = event.getIssue()
....//
....//
Thank you any help!
Dear @Alex ,
if you do not receive an answer the next days, I recommend to ask your question at https://community.developer.atlassian.com/
Bye
Thomas
@Thomas Deiler hi ! Thank you for answer. This is helpful. If I get solution on forum , will add here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.