Jira configure field in issue view

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

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

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

Jordan

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

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 !

You can make a javascript, that will change column activity

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,794 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot