Jira configure field in issue view

jordan blanc-poujol July 8, 2014

Hello

I want to add in my header section the same button locate in create issue (configure fields). With a picture i think he will be more clear.

I would know if it's possible to do the same with my fields located in jira issue view ? And how ? I try to use a web item but he doesn't works.

PS : Sorry for french in picture

Thanks for your answers.

Jordan

4 answers

2 votes
Julia Levcovets
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 8, 2014

Hi Jordan,

For JIRA view you might use screen. If you want users be able to add or delete fields for view - we can write a small plugin that would filtrate them from the screen

It is needed:

- a webitem with dialog

- servlet - for user request proccessing

- active objects back end - to store info

- servlet filter: to delete needless fields during loading

Regards

jordan blanc-poujol July 8, 2014

Thanks for your answer, but how link my webitem to my servlet for user request ?

Jordan

1 vote
Julia Levcovets
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 10, 2014

You can make a javascript, that will change column activity

1 vote
jordan blanc-poujol July 8, 2014

I have doing this :

package com.infosClientJira;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


import java.io.IOException;
import java.io.PrintWriter;


@SuppressWarnings("serial")
public final class Tri extends HttpServlet {

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {

		final PrintWriter w = res.getWriter();
		w.write("<h2 align='center'>Tri</h2>");
		w.write("<div class='qf-picker'>");
		w.write("<div class='qf-picker-header'>");
		w.write("<dl><dt>Print fields :</dt>");
		w.write("<dd>All</dd>");
		w.write("<dd><a class='qf-configurable' href='#'>Personalize</a></dd>");
		w.write("</dl>");
		w.write("</div>");
		w.write("<div class='qf-picker-content qf-picker-unconfigurable' style='max-height: 658px;'>");
		w.write("<ul class='qf-picker-buttons'>");
		w.write("<li><span title='adv - facturation' data-field-id='customfield_11000' class='qf-picker-button qf-active' href='#'>adv - facturation</span></li>");
		w.write("<li><span title='com - rappel a+' data-field-id='customfield_11100' class='qf-picker-button qf-active' href='#'>com - rappel a+</span></li>");
		w.write("<li><span title='Étiquettes' data-field-id='labels' class='qf-picker-button qf-active' href='#'>Étiquettes</span></li>");
		w.write("</ul>");
		w.write("</div>");
		w.write("<div class='qf-picker-footer'></div>");
		w.write("</div>");

		w.write("<script language='javascript'>document.forms[0].elements[0].focus();</script>");

		w.close();
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
	}
}

So now when I click on Personalize i would check and uncheck the box. To do this I need to implement doPost ? Or I can do this by an another way ?

Thanks a lot !

1 vote
Julia Levcovets
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 8, 2014

It's a additional dev: create a form in dialog, that will send requests to servlet

Suggest an answer

Log in or Sign up to answer