I am planning to automate the creation of Jira Board creation through filters using Jira Rest api's.
For this i will be creating UI in jira that will have custom fields which will get the inputs from the user.
So in order to create a filter JQL has to be given as input and initially i thought similar to basic search i can give each filter criteria as a seperate custom field and finally based on the user selection of fields i will concatenate and form the jql and create the filer. But that doesn't work out.
So now i am thinking of creating a scripted field that will mimic the functionality of advanced jql search in Jira. Is this possible and if yes how it can be achieved.Please provide example if any.Also i
If the above approach is not feasible or if that is not the best approach then kindly suggest me the best approach to get the jql filter as input from the user in a custom field in a jira screen and then validating it using java in the back end and then finally creating the filter if the jql input given by the user is valid.
What are the options to mimic the below Basic search using custom fields in Jira :
What are the options to mimic the below Advanced search using custom fields in Jira :
Please provide the approaches and examples if any and let me know if you have any other queries.
Hi @Ravi Shankar,
I have some recommendations for you, if that suits your solution:
Regards,
Ravi Varma
Hi @Ravi Varma
Thanks for the suggestion i am planning to use Jira Rest api's to automate the process of scrum and kanban board creation through filters.
So for filter creation i am using /rest/api/2/filter this rest api which takes jql query as a parameter and i want end users to provide jql either in basic or advanced search format.For this only i asked for options to mimic the basic or advanced search in Jira using custom fields.
Already project creation part in Jira has been automated and now we are trying to add the board creation functionality in the project creation part.
For board creation i am planning to use /rest/agile/1.0/board which takes board name,type and filter id as the parameter.What other configurations are to be included apart from this could you please shed some light here ?
If i want to use the native Jira UI for filter creation should i have a text type custom field which points to the native Jira UI filter creation page and how to capture filter values created using the native Jira UI filter in the screen which i am using to automate the jira board creation any idea/suggestions ?
The utlimate goal is to enable the end users create requests in Jira through which jira project creation along with board creation is done for them based on their inputs.
Let me know if you have any other queries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravi Varma
First of all thanks for your suggestion
But i have a couple of questions :
1.If i am delegating the filter creation to native Jira UI by providing a link to the native Jira UI filter creation page in the screen used for creation of Jira Board then how can i capture the filter name/id that is being created in the screen used for creation boards any idea/suggestions on how to achieve this?
Also what are all the other configurations apart from filter that has to be included for board creation could you please shed some light here ?
The ultimate goal of this to enable end users to raise a request in Jira that will enable them to create a project along with board through filters.Already project creation has been automated by my team and we are trying to extend the project creation functionality to include board creation as well.
For board creation i am planning to use /rest/agile/1.0/board rest api and for filter creation i am planning to use /rest/api/2/filter which takes jql as the parameter for which i need a way to get the jql from the end user.
Let me know if you have any other queries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravi Shankar,
Regards,
Ravi Varma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravi Varma
Thanks Again. I will try to use a plain text box for the users to enter they JQL and let you know how it works but if a user gives a wrong or invalid JQL how that can be validated at the server end any idea /suggestions.
For creating board through filters i will be asking the user for the filter name,filter description,jql and favorite flag for filter out of which description and favorite fields will be optional.
For fetching board details i will give board name,type of the board will be a drop down and i will fetch the filter id in the back end using rest api.
This is how i have planned let me know if my approach is correct.I tried to create boards using filterid in postman client and by default i am getting two quick filters.
So according to me the hardest part over here is validating the jql in the back end can you please give idea / recommendations to validate the jql entered by the user at the server end and also let me know what i need to explore on the mappings between statuses and columns?
When i had discussion with my team they are telling that the users should be given option to create boards for existing projects as well any idea on how to automate this by using rest api's or any other ideal approach?
Most of the users will not be comfortable with advanced jql instead try to provide the basic jql search available in jira and form the jql in the back end is what they are suggesting.Any idea/suggestions on how to mimic the basic jql search that is available in the native jira ui?
Let me know if you have any other queries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravi Shankar,
You should explore https://docs.atlassian.com/software/jira/docs/api/7.1.0/com/atlassian/jira/jql/validator/ClauseValidator.html for validating your JQL.
With regard to mimicking Issue Navigator JQL search, I would reiterate that it is difficult component to implement (irrespective of whether it is basic or advanced search) and you should decide whether you want to provide this feature to your end users or not.
With regard to creating boards for existing projects, JIRA natively provides the ability to create boards. Here also, you can leverage using new or existing filter and use that to create a board. At this point, I am curious, especially while creating boards for existing projects, how your functionality would be different from the native JIRA functionality?
If you find my solution useful, can you accept, which would motivate us to answer more community questions.
Regards,
Ravi Varma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravi Varma
I found your solution useful and i will try to implement this and let you know to which extent it works.
I am also going to create boards in the same way jira is doing but we are trying to automate this piece since only jira and project admins are able to do it now.
With respect to JQL creation initially you suggested me to use the native Jira UI and capture the filter name/id from there how can i implement this can i have a link in the screen which points to the native jira filter creation page or is there any efficient way to achieve this.
If you could suggest me some good approaches to use the native Jira UI filter creation page in the screen which i am using to get the inputs for boards and filters creation from the users it will be of great help.
Thanks a lot for all all you answers Ravi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravi Shankar,
Board creation permission (Create shared objects global permission can be delegated to appropriate groups). Please refer to this link to know more about who can create boards
My initial suggestion, before knowing your original requirement, was to create a filter that would serve as an input for your board.
I would recommend to keep filter creation separate and away from your UI screens. This would work for existing projects.
If you look at native JIRA software project creation, you will note that you can create project without necessarily thinking about the board. In the backend, JIRA automatically creates a board (Refer below screenshot) with default JQL and default permissions and configurations. My recommendation would be follow similar pattern and update the default JQL with user provided JQL (in this case, you have to validate the user provided JQL)
Hope this answers your queries.
Regards,
Ravi Varma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @Ravi Shankar
this is a very interesting feature - some of our customers are asking for. Do you intend to offer your solution or share it publicly?
Best,
Jan
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.