You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Team ,
I am trying to write a script for a field behavior in JIRA. As part of which I am trying to fetch the Summary ( system field ) value from a JIRA ticket. But as result the value in log shows a Null value for Summary.
I tried using below but know luck.
-- FormField ExtractType = getFieldById("summary")
-- FormField ExtractType = getFieldByName("summary")
Can someone help me to show how to get values of a summary field.
Thanks.
You can get summary like this;
underlyingIssue?.summary
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> On which field have you attached this script? Please answer my question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Moin, or Jamie - did anything ever come of this question?
I believe I am having the same problem, my code is as so:
import com.atlassian.jira.component.ComponentAccessor
def summary = getFieldById("summary")
summary.setHelpText ("Summary is: "+getFieldByName("Summary").getFormValue())
I have tried a range of syntax:
getFieldByName("Summary").getFormValue()
getFieldById("summary").getFormValue()
getFieldByName("Summary").getValue()
getFieldById("summary").getValue()
Unfortunately in all cases my help text simply states the summary is Null, even when editing a ticket which has a summary set.
Any help would be greatly appreciated
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.
No we don't have any Summary custom field. We are using Summary system field only.
We even tried this with other system fields but getting the same error - Null value
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's:
getFieldById("summary"
or
getFieldByName("Summary")
Once you have the field, you call getFormValue() on it to get the actual summary. On which field have you attached this script?
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.
Summary is the name of the system summary field. Do you have a a custom field called Summary?
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.