I have been looking into the related question I am unable to get the proper answer.
My Req is :
1. I have created one custom field ( Days Opened - Value will poppulated by the Script Runner)
2. I dont want this to be appear during issue creation.
I have verified across jira configf , I am unable to get it , Please advise me on this
You can do like this..if you don't want this field on create issue screen but you want to show on view issue screen.
Copy/create a screen and then add this field on view issue screen, associate this view issue screen on view issue operation.
Add the custom script post function in that set the value of this field (Days Opened ) so whenever user will create an issue they will not be able to see this field but once the issue will create then post function will set the value for it and the user will be able to see the field on view issue screen.
Yes This will work , but I am looking for the easier solution that this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The easy solution is to remove the field (that you don't want on the create screen) from the create screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have two questions here
1. So I have to create two screens , with/without variables ?
2. Is there any other way to do except the above one ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Yes
2. Not without coding of some form. The reason screens were implemented was to allow for different fields to be presented at different places, as you're trying to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You could also add a Scriptrunner behaviour and map it to the issue types it usually appears on:
getFieldByName("Days Opened")?.setHidden(true)
Incredibly quick and easy to do.
Thanks,
Johnson Howard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do I set during IssueCreated the field should be hidden and during view screen it shouldnt be?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can always check the action to see if it is on the create action.
Behaviours gives you access to such methods as:
Read this page to see what is available. In the behaviour script just do a simple if statement to check that the action is create and then hide the field if it is, in the else set the field to be not hidden.
Thanks,
Johnson Howard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You mean that you created a scripted field in ScriptRunner and it appears in the create screen?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created a custom field and set it in a screen, which should not appear in create page screen .
The value of that field is populated through Scriptrunner script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Remove this field from the create screen.
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.