Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Get file name using configuration file

 Hi,

I am wondering if it is possible to access the name of the excel file in a configuration file. I see in the custom attributes section here - https://jazz.net/wiki/bin/view/Main/RQMExcelWordImporter - that there is a mention of using the excel document's properties:

"Along the same lines, you can access the properties of the spreadsheet that  you are working on. Examples:

requirement.dc:title=property(“Title”)

 requirement.dc:creator=property("Author")

requirement.jzalm:owner=property(“Company”) "

I tried doing this in my configuration file by doing this:

    testcase.category term=property(“Title”).value="validate"

 however, in the generated xml it just shows
    <category term=property("Title") value="validate"/>

So I am lead to believe that it either doesn't work or this doesn't do what I hoped it would. If it is possible to get the document's name, is it also possible to get the current tab's name?

0 votes



2 answers

Permanent link

James,


Getting current tab name is not possible, but it is possible to get the document name by using configuration syntax- 
            - property("full name") // full name with extension and path
            - property("name") // name with extension

Regards,
Mehul

0 votes


Permanent link

 I tried using 

    testcase.category term=property(“name”).value="test"

It results in

<category term=property(“name”) value="test"/>

Is there something I'm missing here?

0 votes

Comments

I did not get the last part of syntax - .value="test", could you please explain?

The .value="test" should just set the subcategory to "test". I'd like to try to set a category based on the file name and then a subcategory based on something in the sheet. That part works fine. I'm just struggling with getting the filename with property("name") or property("full name")

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,131

Question asked: Nov 01 '18, 11:53 a.m.

Question was seen: 1,952 times

Last updated: Nov 07 '18, 1:34 p.m.

Confirmation Cancel Confirm