All,
I need to create one custom field in JIRA which will capture Date and Time when value of other three fields set to '1'.
Details:
So whenever drop down of "Prioritization Business Impact", "Prioritization Severity" and "Prioritization Work Around" set to "1", new field should capture date & time of that moment.
How can I do this?
Thank You.
Hey Mike, this answer might come a bit late but you can use this example and alter it accordingly :
import com.atlassian.confluence.labels.Label
import com.atlassian.confluence.labels.LabelManager
import com.atlassian.confluence.labels.Namespace
import com.atlassian.sal.api.component.ComponentLocator
import com.atlassian.confluence.pages.PageManager
def pageManager = ComponentLocator.getComponent(PageManager)
def labelManager = ComponentLocator.getComponent(LabelManager)
def labelName = "test"
log.warn(">>> ${labelName}")
def label = labelManager.getLabel(labelName).getId()
labelManager.deleteLabel(label)
The script above will delete a label by retrieving the label ID.
I hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.