Hi,
I have two Date and Time custom fields on create issue screen
1. From
2.To
Which i am using to select the period of time by the users
Requirement:
I want to restrict other users from selecting the same period of time if someone has already has selected it in.
Kindly help me out to achieve this with out use of any plugins, I guess we can have some java code in the description of a custom field.
Could any one please help me with similar java code to achieve this.
Thank You in Anticipation
Regards,
Ravinder Reddy.S
Helo Ravinder,
Jira natively does not have the ability to restrict permissions at the field level to make a single field read only or only editable by a speciffic set of users the permissions to edit are set at the project level and a user an either can edit OR cannot edit the avaliable fields. Also, this is not a feature that will be implemented in the future, as discussed in the following feature request that was closed as a Won't Fix, but goes into detail explaining the reasoning for why this choice was made in the status update in the issues description and the comments of the request:
However as discussed in the description the following workarounds are available:
Workarounds
Higher in the thread Erik S makes a comment about a workaround that may be useful for some users:
http://jira.atlassian.com/browse/JRA-1330?focusedCommentId=55032#action_55032
it is documented further here:
http://confluence.atlassian.com/pages/viewpage.action?pageId=149834
Third party commercial plugin:
https://plugins.atlassian.com/plugin/details/23216
There is also a recommendation for the tool Jjupin covered in this post:
And a method using workflow properties discussed in the following post noting that this method will disable some functionality within the application such as inline editing form the applications view screen if used:
Regards,
Earl
Hi Earl,
Thanks for the response.
I would like to make my requirement more clear, may be i did not provide enough information.
Its not the user's that I want to restrict i want to restrict the selection that is being done for my date time custom field.
I want something like if a user selects certain value(date time) then the script should fetch the custom field value's(date time) from database that were already entered on other issues and compare them with the present entered value.
The issue needs to be created with the value(date time) entered only if there is no such date and time selected previously else it should return a error.
I am trying to create some kind of booking system.
Regards,
Ravinder Reddy.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravinder Reddy Singireddy Could you please let me know if you got any response/solution to restrict date/calendar field?
We are looking for options to restrict someone not to choose a past date and time.
Thanks.
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.