RSS Displayer with image and custom elements
Permalink
I'm trying to figure out how to display any element from a rss feed imported with the rss displayer block (c5.6.3.4).
The feed has some custom element that I want to show the contents of.
<image>url</image>
<startdate>date</startdate>
<enddate>date</enddate>
Can someone help me with this? It seems simple but i'm missing something i guess.
c5dragon
The feed has some custom element that I want to show the contents of.
<image>url</image>
<startdate>date</startdate>
<enddate>date</enddate>
Can someone help me with this? It seems simple but i'm missing something i guess.
c5dragon
You will want to create a Custom Template for the RSS Displayer block and adjust the view.php according to what you want it to do.
I already have a custom view template in blocks / rss_displayer / templates and I found the part of the simplepie docs I needed:http://simplepie.org/wiki/reference/simplepie_item/get_item_tags...
Added this to the 'correct' parts of the template and it works.
Added this to the 'correct' parts of the template and it works.
$image = $item->get_item_tags('', 'image'); $image_url = $image[0]['data']; <div class="rssItem"> <?php echo '<img src="' . $image_url . '"/>';?> </div>
Ok, so you have this figured out already, or not?
Yes I did.
Choosing which fields to include
To restrict which issue fields are returned in the XML export, specify the field parameter in your URL. For example, to include only the Issue key and Summary, add &field=key&field=summary to the URL.
Note:
If the field parameter is not specified, the XML output will include all the issue fields.
If one or more field parameters are specified, the XML output will contain only the Issue key plus your chosen field(s).
The complete list of available values for the field parameter is as follows:
Value
Sample XML output
Notes
title
1
<title>[TEST-4] This is a test</title>
link
1
<link>https://extranet.atlassian.com:443/jira/browse/TEST-4</link>
This is a 'permalink' to the issue. For links between issues, see * issuelinks * (below).
project (or pid)
1
<project id="10330" key="TST">Test</project>
description
1
<description>This is a detailed description of the issue.<description>
environment
1
<environment>Sydney network<environment>
key
1
<key id="22574">TEST-4</key>
summary
1
<summary>This is a test<summary>
type (or issuetype)
1
<type id="3" iconUrl="https://extranet.atlassian.com:443/jira/images/icons/task.gif">Task</type>
parent
1
<parent id="22620">TEST-5</parent>
Only relevant if the issue is a sub-task.
priority
1
<priority id="4" iconUrl="https://extranet.atlassian.com:443/jira/images/icons/priority_minor.gif">Minor<priority>
status
1
<status id="5" iconUrl="https://extranet.atlassian.com:443/jira/images/icons/status_resolved.gif">Resolved</status>
resolution
1
<resolution id="1">Fixed</resolution>
labels
1
<labels>
2
<label>focus</label>
3
<labels>
assignee
1
<assignee username="jsmith">John Smith</assignee>
reporter
1
<assignee username="jsmith">John Smith</assignee>
security
1
<security id="10021">Private</security>
Only relevant if a security level has been applied to the issue.
created
1
<created>Mon, 1 Sep 2008 17:30:03 -0500 (CDT)>/created>
updated
1
<updated>Mon, 1 Sep 2008 17:30:03 -0500 (CDT)>/updated>
resolved (or resolutiondate)
1
<resolved>Mon, 1 Sep 2008 17:30:03 -0500 (CDT)>/resolved>
due (or duedate)
1
<due>Mon, 1 Sep 2008 17:30:03 -0500 (CDT)>/due>
version (or versions)
1
<version>2.4.7</version>
fixfor (or fixVersions)
1
<fixVersion>2.6</fixVersion>
component (or components)
1
<component>Documentation</component>
votes
1
<votes>1</votes>
comments (or comment)
1
<comments>
2
<comment id="39270" author="jsmith" created="Tue, 24 Feb 2009 16:45:02 -0600 (CST)">this looks familiar</comment>
3
<comment id="39273" author="jbrown" created="Tue, 24 Feb 2009 16:48:16 -0600 (CST)">to me too</comment>
4
</comments>
attachments (or attachment)
1
<attachments>
2
<attachment id="30318" name="Issue Navigator - Atlassian JIRA-2.png" size="16161" author="yoz" created="Mon, 9 Feb 2009 13:32:58 -0600 (CST)"/>
3
<attachment id="30323" name="Windows XP (with Firefox 3.0).jpg" size="5802" author="vbharara" created="Tue, 10 Feb 2009 00:30:11 -0600 (CST)"/>
4
</attachments>
Only available if your administrator has enabled attachments.
timeoriginalestimate
1
<timeoriginalestimate seconds="600">10 minutes</timeoriginalestimate>
Only available if your administrator has enabled 'time-tracking'.
timeestimate
1
<timeestimate seconds="300">5 minutes</timeestimate>
Only available if your administrator has enabled 'time-tracking'.
timespent
1
<timespent seconds="300">5 minutes</timespent>
Only available if your administrator has enabled 'time-tracking'.
aggregatetimeoriginalestimate
1
<aggregatetimeoriginalestimate seconds="36000">10 hours</aggregatetimeoriginalestimate>
(ie. aggregate time for the issue plus all of its sub-tasks.) Only available if your administrator has enabled 'time-tracking'.
aggregatetimeestimate
1
<aggregatetimeremainingestimate seconds="18000">5 hours</aggregatetimeremainingestimate>
(ie. aggregate time for the issue plus all of its sub-tasks.) Only available if your administrator has enabled 'time-tracking'.
aggregatetimespent
1
<aggregatetimespent seconds="18000">5 hours</aggregatetimespent>
(ie. aggregate time for the issue plus all of its sub-tasks.) Only available if your administrator has enabled 'time-tracking'.
timetracking
1
<timeoriginalestimate seconds="600">10 minutes</timeoriginalestimate>
2
<timeestimate seconds="300">5 minutes</timeestimate>
3
<timespent seconds="300">5 minutes</timespent>
4
<aggregatetimeoriginalestimate seconds="36000">10 hours</aggregatetimeoriginalestimate>
5
<aggregatetimeremainingestimate seconds="18000">5 hours</aggregatetimeremainingestimate>
6
<aggregatetimespent seconds="18000">5 hours</aggregatetimespent>
This is a convenient shorthand way of specifying all of the above six time-tracking fields. (Only available if your administrator has enabled 'time-tracking'. )
issuelinks
1
<issuelinks>
2
<issuelinktype id="10020">
3
<name>Duplicate</name>
4
<inwardlinks description="is duplicated by">
5
<issuelink>
6
<issuekey id="22477">INTSYS-1009</issuekey>
7
</issuelink>
8
</inwardlinks>
9
</issuelinktype>
10
</issuelinks>
subtasks (or subtask)
1
<subtasks>
2
<subtask id="22623">TEST-8</subtask>
3
</subtasks>
customfield_xxxxx
1
<customfields>
2
<customfield id="customfield_10112" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
3
<customfieldname>Department</customfieldname>
4
<customfieldvalues>
5
<customfieldvalue>Adminstration</customfieldvalue>
6
</customfieldvalues>
7
</customfield>
8
</customfields>
(where "xxxxx" is the id of a given custom field. E.g. this output is the result of specifying &field=customfield_10112 )
allcustom
1
<customfields>
2
<customfield id="customfield_10112" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
3
<customfieldname>Department</customfieldname>
4
<customfieldvalues>
5
<customfieldvalue>Adminstration</customfieldvalue>
6
</customfieldvalues>
7
</customfield>
8
<customfield id="customfield_10111" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
9
<customfieldname>Expenditure Type</customfieldname>
10
<customfieldvalues>
11
<customfieldvalue>Operating</customfieldvalue>
12
</customfieldvalues>
13
</customfield>
14
</customfields>
To restrict which issue fields are returned in the XML export, specify the field parameter in your URL. For example, to include only the Issue key and Summary, add &field=key&field=summary to the URL.
Note:
If the field parameter is not specified, the XML output will include all the issue fields.
If one or more field parameters are specified, the XML output will contain only the Issue key plus your chosen field(s).
The complete list of available values for the field parameter is as follows:
Value
Sample XML output
Notes
title
1
<title>[TEST-4] This is a test</title>
link
1
<link>https://extranet.atlassian.com:443/jira/browse/TEST-4</link>
This is a 'permalink' to the issue. For links between issues, see * issuelinks * (below).
project (or pid)
1
<project id="10330" key="TST">Test</project>
description
1
<description>This is a detailed description of the issue.<description>
environment
1
<environment>Sydney network<environment>
key
1
<key id="22574">TEST-4</key>
summary
1
<summary>This is a test<summary>
type (or issuetype)
1
<type id="3" iconUrl="https://extranet.atlassian.com:443/jira/images/icons/task.gif">Task</type>
parent
1
<parent id="22620">TEST-5</parent>
Only relevant if the issue is a sub-task.
priority
1
<priority id="4" iconUrl="https://extranet.atlassian.com:443/jira/images/icons/priority_minor.gif">Minor<priority>
status
1
<status id="5" iconUrl="https://extranet.atlassian.com:443/jira/images/icons/status_resolved.gif">Resolved</status>
resolution
1
<resolution id="1">Fixed</resolution>
labels
1
<labels>
2
<label>focus</label>
3
<labels>
assignee
1
<assignee username="jsmith">John Smith</assignee>
reporter
1
<assignee username="jsmith">John Smith</assignee>
security
1
<security id="10021">Private</security>
Only relevant if a security level has been applied to the issue.
created
1
<created>Mon, 1 Sep 2008 17:30:03 -0500 (CDT)>/created>
updated
1
<updated>Mon, 1 Sep 2008 17:30:03 -0500 (CDT)>/updated>
resolved (or resolutiondate)
1
<resolved>Mon, 1 Sep 2008 17:30:03 -0500 (CDT)>/resolved>
due (or duedate)
1
<due>Mon, 1 Sep 2008 17:30:03 -0500 (CDT)>/due>
version (or versions)
1
<version>2.4.7</version>
fixfor (or fixVersions)
1
<fixVersion>2.6</fixVersion>
component (or components)
1
<component>Documentation</component>
votes
1
<votes>1</votes>
comments (or comment)
1
<comments>
2
<comment id="39270" author="jsmith" created="Tue, 24 Feb 2009 16:45:02 -0600 (CST)">this looks familiar</comment>
3
<comment id="39273" author="jbrown" created="Tue, 24 Feb 2009 16:48:16 -0600 (CST)">to me too</comment>
4
</comments>
attachments (or attachment)
1
<attachments>
2
<attachment id="30318" name="Issue Navigator - Atlassian JIRA-2.png" size="16161" author="yoz" created="Mon, 9 Feb 2009 13:32:58 -0600 (CST)"/>
3
<attachment id="30323" name="Windows XP (with Firefox 3.0).jpg" size="5802" author="vbharara" created="Tue, 10 Feb 2009 00:30:11 -0600 (CST)"/>
4
</attachments>
Only available if your administrator has enabled attachments.
timeoriginalestimate
1
<timeoriginalestimate seconds="600">10 minutes</timeoriginalestimate>
Only available if your administrator has enabled 'time-tracking'.
timeestimate
1
<timeestimate seconds="300">5 minutes</timeestimate>
Only available if your administrator has enabled 'time-tracking'.
timespent
1
<timespent seconds="300">5 minutes</timespent>
Only available if your administrator has enabled 'time-tracking'.
aggregatetimeoriginalestimate
1
<aggregatetimeoriginalestimate seconds="36000">10 hours</aggregatetimeoriginalestimate>
(ie. aggregate time for the issue plus all of its sub-tasks.) Only available if your administrator has enabled 'time-tracking'.
aggregatetimeestimate
1
<aggregatetimeremainingestimate seconds="18000">5 hours</aggregatetimeremainingestimate>
(ie. aggregate time for the issue plus all of its sub-tasks.) Only available if your administrator has enabled 'time-tracking'.
aggregatetimespent
1
<aggregatetimespent seconds="18000">5 hours</aggregatetimespent>
(ie. aggregate time for the issue plus all of its sub-tasks.) Only available if your administrator has enabled 'time-tracking'.
timetracking
1
<timeoriginalestimate seconds="600">10 minutes</timeoriginalestimate>
2
<timeestimate seconds="300">5 minutes</timeestimate>
3
<timespent seconds="300">5 minutes</timespent>
4
<aggregatetimeoriginalestimate seconds="36000">10 hours</aggregatetimeoriginalestimate>
5
<aggregatetimeremainingestimate seconds="18000">5 hours</aggregatetimeremainingestimate>
6
<aggregatetimespent seconds="18000">5 hours</aggregatetimespent>
This is a convenient shorthand way of specifying all of the above six time-tracking fields. (Only available if your administrator has enabled 'time-tracking'. )
issuelinks
1
<issuelinks>
2
<issuelinktype id="10020">
3
<name>Duplicate</name>
4
<inwardlinks description="is duplicated by">
5
<issuelink>
6
<issuekey id="22477">INTSYS-1009</issuekey>
7
</issuelink>
8
</inwardlinks>
9
</issuelinktype>
10
</issuelinks>
subtasks (or subtask)
1
<subtasks>
2
<subtask id="22623">TEST-8</subtask>
3
</subtasks>
customfield_xxxxx
1
<customfields>
2
<customfield id="customfield_10112" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
3
<customfieldname>Department</customfieldname>
4
<customfieldvalues>
5
<customfieldvalue>Adminstration</customfieldvalue>
6
</customfieldvalues>
7
</customfield>
8
</customfields>
(where "xxxxx" is the id of a given custom field. E.g. this output is the result of specifying &field=customfield_10112 )
allcustom
1
<customfields>
2
<customfield id="customfield_10112" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
3
<customfieldname>Department</customfieldname>
4
<customfieldvalues>
5
<customfieldvalue>Adminstration</customfieldvalue>
6
</customfieldvalues>
7
</customfield>
8
<customfield id="customfield_10111" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
9
<customfieldname>Expenditure Type</customfieldname>
10
<customfieldvalues>
11
<customfieldvalue>Operating</customfieldvalue>
12
</customfieldvalues>
13
</customfield>
14
</customfields>