Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
themeEclipse
firstline1
titlereadRows method
linenumberstrue
collapsetrue
Read data of the grid.
@param issueId - id of the issue where rows should be added
@param customFieldId - id of the grid custom field where data should be read from
@param user - Jira user which will be used to control permissions
@param columnIds - set of columns' ids to filter columns for the returned result
@return object of Grid meta data and rows
GridFieldData readFieldData(Long issueId, CustomFieldId customFieldId, ApplicationUser user, Set<String> columnIds);

...

Code Block
true
languagejava
themeEclipse
firstline1
titleaddRows method
linenumberscollapsetrue
Add rows to the grid.
@param issueId - id of the issue where rows should be added
@param customFieldId - id of the grid custom field where data should be added
@param rows - list of maps with columns' ids and values
@param user - Jira user which will be used to control permissions
@return list of rows' ids
List<String> addRows(Long issueId, CustomFieldId customFieldId, List<Map<String, Object>> rows, ApplicationUser user);

...

Code Block
languagejava
themeEclipse
firstline1
titleupdateRows method
linenumberstruecollapsetrue
Update rows of the grid.
@param issueId - id of the issue where rows should be added
@param customFieldId - id of the grid custom field where data should be added
@param changes - list object that represent changes for specific rows
@param user - Jira user which will be used to control permissions
void updateRows(Long issueId, CustomFieldId customFieldId, List<GridRow> changes, ApplicationUser user);

...

Code Block
languagejava
themeEclipse
firstline1
titleGridRow class
linenumberstruecollapsetrue
public class GridRow {

    private String rowId;
    private Map<String, Object> columns;
	private Long order;

    public GridRow() {}

    public GridRow(String rowId, Map<String, Object> columns) {
        this.rowId = rowId;
        this.columns = columns;
    }

	public GridRow(String rowId, Map<String, Object> columns, Long order) {
        this.rowId = rowId;
        this.columns = columns;
		this.order = order;
    }
...
}

...

Code Block
languagejava
themeEclipse
firstline1
titleGridFieldData class
linenumberstruecollapsetrue
public class GridFieldData {
 
    private String customFieldId;
    private String description;
	private List<GridRow> rows;

    public GridFieldData() {}
...
}

...