Could some one please help in how to prefill Summary Field before issue has been even created. This should happen a particular project but not on all projects.
Hello @Tuncay Senturk
It's me again .
I am using below behaviours script
def summary = getFieldById("summary") if (! summary.getValue()) { summary.setFormValue("abc")
It works fine, but when i change the project the value abc sticks to summary field.
Is there any correction so i can avoid that happening?
I am looking to achieve this only on one project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I could not understand the main point but if you need to add project control you can use following statement
def projectKey = issueContext.projectObject.key
if (projectKey.equals("PRJ") {
// ...
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry i couldn't explain you properly. When i use the code which i pasted above, the summary field gets pre-populated when i am on create form for the project CMR because i have selected the workflow related to CMR project in behaviours to act upon.
But when in the create screen if i change the project value which is using different workflow other than CMR the summary field shows that default value which we set in screenshot1 and also makes the field optional as shown in screenshot2.
Here am looking to implement this only on one project which is CMR. Please suggect me what can be done here to achieve desired functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can restrict the behaviour for the project or use a code as below
issue.getProjectObject().getKey().equals("CMR") && ...
I hope I did not miss anything.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naveen,
You can use the Default values plugin for Jira to achieve this.
You can set default values per project or issue type.
More info here >> https://marketplace.atlassian.com/plugins/com.gebsun.plugins.jira.defaultvalues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.