I am very new to jira and has not even used scripts uptil now. I need to use the Script fields. i had installed it on jira, but I am facing problem in using it. to use thescript fields, I need to write a script and fill up this(shown in the picture). can anybody help me with this? what should be there in script file path, script, tempalte etc....
I'm not sure what the confusion is.
You need to write a script that does what you want. (We can't start on that, as we don't know what you want). Once you've written it, you need to tell Jira how to get to it. Either upload it as a file and use the "script file path" to tell Jira where it is, OR you write it in the "Script" field.
The template, as per docs, is the text the field will output, using the results from the script.
I did the following and in the script testing for a issue it was returning the correct value. But the field was not working in the issue navigator. I tried reindexing then. jira was unable to reindex and was showing the error because of the scripted custom field i had created. I deleted the custom field and reindexed. when i created the field again then it was not even showing any value in the script testing for an issue. Tried reindexing and was showing the same error. is there any problem or incompatibility of the script field created on jira
Daniel's script is broadly correct but doesn't take into account when there is no assignee, which is probably what is blowing up your indexing (NPE).
The script should just be:
issue.assignee == issue.reporter
However I would not waste a script field on this... you can use script runner's JQL functions to query on this, eg:
issuefunction in expression("", "assignee == reporter")
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
One of the newest products in the Microsoft family - Microsoft Teams, is a chat-based hub for teamwork that integrates all the people, content, and tools your team needs to be more engaged and ...
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!
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